github.com/k8snetworkplumbingwg/sriov-network-operator@v1.2.1-0.20240408194816-2d2e5a45d453/deploy/operator.yaml (about) 1 apiVersion: apps/v1 2 kind: Deployment 3 metadata: 4 name: sriov-network-operator 5 spec: 6 replicas: 1 7 selector: 8 matchLabels: 9 name: sriov-network-operator 10 updateStrategy: 11 type: RollingUpdate 12 rollingUpdate: 13 maxUnavailable: 33% 14 template: 15 metadata: 16 labels: 17 name: sriov-network-operator 18 spec: 19 affinity: 20 nodeAffinity: 21 requiredDuringSchedulingIgnoredDuringExecution: 22 nodeSelectorTerms: 23 - matchExpressions: 24 - key: node-role.kubernetes.io/master 25 operator: Exists 26 - matchExpressions: 27 - key: node-role.kubernetes.io/control-plane 28 operator: Exists 29 tolerations: 30 - effect: NoSchedule 31 key: node-role.kubernetes.io/master 32 operator: Exists 33 - effect: NoSchedule 34 key: node-role.kubernetes.io/control-plane 35 operator: Exists 36 serviceAccountName: sriov-network-operator 37 priorityClassName: "system-node-critical" 38 containers: 39 - name: sriov-network-operator 40 # Replace this with the built image name 41 image: $SRIOV_NETWORK_OPERATOR_IMAGE 42 command: 43 - sriov-network-operator 44 resources: 45 requests: 46 cpu: 100m 47 memory: 100Mi 48 env: 49 - name: WATCH_NAMESPACE 50 valueFrom: 51 fieldRef: 52 fieldPath: metadata.namespace 53 - name: SRIOV_CNI_IMAGE 54 value: $SRIOV_CNI_IMAGE 55 - name: SRIOV_INFINIBAND_CNI_IMAGE 56 value: $SRIOV_INFINIBAND_CNI_IMAGE 57 - name: OVS_CNI_IMAGE 58 value: $OVS_CNI_IMAGE 59 - name: SRIOV_DEVICE_PLUGIN_IMAGE 60 value: $SRIOV_DEVICE_PLUGIN_IMAGE 61 - name: NETWORK_RESOURCES_INJECTOR_IMAGE 62 value: $NETWORK_RESOURCES_INJECTOR_IMAGE 63 - name: OPERATOR_NAME 64 value: sriov-network-operator 65 - name: SRIOV_NETWORK_CONFIG_DAEMON_IMAGE 66 value: $SRIOV_NETWORK_CONFIG_DAEMON_IMAGE 67 - name: SRIOV_NETWORK_WEBHOOK_IMAGE 68 value: $SRIOV_NETWORK_WEBHOOK_IMAGE 69 - name: RESOURCE_PREFIX 70 value: $RESOURCE_PREFIX 71 - name: DEV_MODE 72 value: "$DEV_MODE" 73 - name: NAMESPACE 74 valueFrom: 75 fieldRef: 76 fieldPath: metadata.namespace 77 - name: POD_NAME 78 valueFrom: 79 fieldRef: 80 fieldPath: metadata.name 81 - name: NODE_NAME 82 valueFrom: 83 fieldRef: 84 fieldPath: spec.nodeName 85 - name: RELEASE_VERSION 86 value: 4.3.0 87 - name: SRIOV_CNI_BIN_PATH 88 value: $CNI_BIN_PATH 89 - name: CLUSTER_TYPE 90 value: $CLUSTER_TYPE 91 - name: ADMISSION_CONTROLLERS_CERTIFICATES_OPERATOR_SECRET_NAME 92 value: $ADMISSION_CONTROLLERS_CERTIFICATES_OPERATOR_SECRET_NAME 93 - name: ADMISSION_CONTROLLERS_CERTIFICATES_INJECTOR_SECRET_NAME 94 value: $ADMISSION_CONTROLLERS_CERTIFICATES_INJECTOR_SECRET_NAME 95 - name: ADMISSION_CONTROLLERS_CERTIFICATES_CERT_MANAGER_ENABLED 96 value: "$ADMISSION_CONTROLLERS_CERTIFICATES_CERT_MANAGER_ENABLED" 97 - name: ADMISSION_CONTROLLERS_CERTIFICATES_OPERATOR_CA_CRT 98 value: $ADMISSION_CONTROLLERS_CERTIFICATES_OPERATOR_CA_CRT 99 - name: ADMISSION_CONTROLLERS_CERTIFICATES_INJECTOR_CA_CRT 100 value: $ADMISSION_CONTROLLERS_CERTIFICATES_INJECTOR_CA_CRT