80d16e6c91
Support for Ambassador OSS as an Ingress Controller when settings `ingress_ambassador_enabled: true`. Signed-off-by: Alvaro Saurin <alvaro.saurin@gmail.com>
43 lines
1.3 KiB
Django/Jinja
43 lines
1.3 KiB
Django/Jinja
---
|
|
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
|
|
imagePullPolicy: Always
|
|
env:
|
|
- name: WATCH_NAMESPACE
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.namespace
|
|
- name: POD_NAME
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.name
|
|
- name: OPERATOR_NAME
|
|
value: "ambassador-operator"
|