github.com/yashbhutwala/operator-sdk@v0.8.1/test/ansible-inventory/deploy/operator.yaml (about) 1 apiVersion: apps/v1 2 kind: Deployment 3 metadata: 4 name: inventory 5 spec: 6 replicas: 1 7 selector: 8 matchLabels: 9 name: inventory 10 template: 11 metadata: 12 labels: 13 name: inventory 14 spec: 15 serviceAccountName: inventory 16 containers: 17 - name: inventory 18 # Replace this with the built image name 19 image: "{{ REPLACE_IMAGE }}" 20 imagePullPolicy: "{{ pull_policy|default('Always') }}" 21 env: 22 - name: WATCH_NAMESPACE 23 valueFrom: 24 fieldRef: 25 fieldPath: metadata.namespace 26 - name: POD_NAME 27 valueFrom: 28 fieldRef: 29 fieldPath: metadata.name 30 - name: OPERATOR_NAME 31 value: "inventory" 32 - name: ANSIBLE_INVENTORY 33 value: /opt/ansible/inventory