c-kustom/base/apisix/resources/ingress-controller/patches/ingress-controller.yaml

25 lines
611 B
YAML
Raw Normal View History

2024-02-01 17:03:55 +01:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: ingress-controller
spec:
replicas: 3
template:
spec:
containers:
- name: ingress-controller
image: "apache/apisix-ingress-controller:1.8.0"
envFrom:
- configMapRef:
name: apisix-env-config
- secretRef:
name: apisix-senstitive
initContainers:
- name: wait-apisix-admin
command:
- sh
- -c
- until nc -z apisix-admin 9180 ; do echo waiting for apisix-admin; sleep 2; done;
image: busybox:1.28
imagePullPolicy: IfNotPresent