mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: tower-operator
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
name: tower-operator
|
|
template:
|
|
metadata:
|
|
labels:
|
|
name: tower-operator
|
|
spec:
|
|
serviceAccountName: tower-operator
|
|
containers:
|
|
- name: ansible
|
|
command:
|
|
- /usr/local/bin/ao-logs
|
|
- /tmp/ansible-operator/runner
|
|
- stdout
|
|
image: "{{ operator_image }}"
|
|
imagePullPolicy: "{{ pull_policy|default('Always') }}"
|
|
volumeMounts:
|
|
- mountPath: /tmp/ansible-operator/runner
|
|
name: runner
|
|
readOnly: true
|
|
- name: operator
|
|
image: "{{ operator_image }}"
|
|
imagePullPolicy: "{{ pull_policy|default('Always') }}"
|
|
volumeMounts:
|
|
- mountPath: /tmp/ansible-operator/runner
|
|
name: runner
|
|
env:
|
|
# Watch all namespaces (cluster-scoped).
|
|
- name: WATCH_NAMESPACE
|
|
value: ""
|
|
- name: POD_NAME
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.name
|
|
- name: OPERATOR_NAME
|
|
value: tower-operator
|
|
# - name: ANSIBLE_VERBOSITY
|
|
# value: '3'
|
|
volumes:
|
|
- name: runner
|
|
emptyDir: {}
|