zuul-operator/deploy/operator.yaml
Tristan Cacqueray ee8a7b2cfb Remove command args override and update operator-framework to v1.4.2
This change fixes an issue where zuul services can't create
a lockfile.

Another issue happening with older operator-framework and newer
kubernetes version is being fixed by updating the operator-framework
following this migration documentation:
  https://sdk.operatorframework.io/docs/building-operators/ansible/migration/

Change-Id: I6adfb907184112f0b7debb050975f76cd1dd4b01
2021-04-06 17:23:56 +00:00

42 lines
1.0 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: zuul-operator
spec:
replicas: 1
selector:
matchLabels:
name: zuul-operator
template:
metadata:
labels:
name: zuul-operator
spec:
serviceAccountName: zuul-operator
containers:
- name: manager
args:
- "--enable-leader-election"
- "--leader-election-id=zuul-operator"
env:
- name: ANSIBLE_GATHERING
value: explicit
- name: WATCH_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
image: "docker.io/zuul/zuul-operator"
imagePullPolicy: "IfNotPresent"
livenessProbe:
httpGet:
path: /readyz
port: 6789
initialDelaySeconds: 15
periodSeconds: 20
readinessProbe:
httpGet:
path: /healthz
port: 6789
initialDelaySeconds: 5
periodSeconds: 10