2020-06-24 22:39:17 +08:00
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: ambassador-operator
|
|
|
|
namespace: {{ ingress_ambassador_namespace }}
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: ambassador-operator
|
|
|
|
app.kubernetes.io/part-of: ambassador-operator
|
|
|
|
getambassador.io/installer: operator
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
name: ambassador-operator
|
|
|
|
app.kubernetes.io/name: ambassador-operator
|
|
|
|
app.kubernetes.io/part-of: ambassador-operator
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
name: ambassador-operator
|
|
|
|
getambassador.io/installer: operator
|
|
|
|
app.kubernetes.io/name: ambassador-operator
|
|
|
|
app.kubernetes.io/part-of: ambassador-operator
|
|
|
|
spec:
|
|
|
|
serviceAccountName: ambassador-operator
|
|
|
|
containers:
|
|
|
|
- name: ambassador-operator
|
|
|
|
image: {{ ingress_ambassador_image_repo }}:{{ ingress_ambassador_image_tag }}
|
|
|
|
command:
|
|
|
|
- ambassador-operator
|
2020-10-13 08:45:22 +08:00
|
|
|
imagePullPolicy: {{ k8s_image_pull_policy }}
|
2020-06-24 22:39:17 +08:00
|
|
|
env:
|
|
|
|
- name: WATCH_NAMESPACE
|
2021-04-26 23:37:02 +08:00
|
|
|
{% if ingress_ambassador_multi_namespaces %}
|
2021-04-22 15:22:31 +08:00
|
|
|
value: ''
|
2021-04-26 23:37:02 +08:00
|
|
|
{% else %}
|
2020-06-24 22:39:17 +08:00
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.namespace
|
2021-04-26 23:37:02 +08:00
|
|
|
{% endif %}
|
2020-06-24 22:39:17 +08:00
|
|
|
- name: POD_NAME
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.name
|
|
|
|
- name: OPERATOR_NAME
|
|
|
|
value: "ambassador-operator"
|