25 lines
611 B
YAML
25 lines
611 B
YAML
|
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
|