First try apisix-ingress-controler

This commit is contained in:
2024-02-01 17:03:55 +01:00
parent 82096575ba
commit 718741df6b
16 changed files with 793 additions and 0 deletions

View File

@ -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

View File

@ -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