First try apisix-ingress-controler
This commit is contained in:
@ -0,0 +1,8 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- https://github.com/apache/apisix-ingress-controller/samples/deploy?ref=v1.8.0
|
||||
|
||||
patches:
|
||||
- path: patches/ingress-controller.yaml
|
@ -0,0 +1,24 @@
|
||||
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
|
Reference in New Issue
Block a user