Rearrange deployment files into kustomizations
This commit is contained in:
parent
1bd3fd2429
commit
51ad0bc54b
56 changed files with 532 additions and 1094 deletions
26
test/e2e-image/overlay/deployment-e2e.yaml
Normal file
26
test/e2e-image/overlay/deployment-e2e.yaml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: nginx-ingress-controller
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
initContainers:
|
||||
- name: enable-coredump
|
||||
image: busybox
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- |
|
||||
ulimit -c unlimited
|
||||
echo "/tmp/core.%e.%p" > /proc/sys/kernel/core_pattern
|
||||
sysctl -w fs.suid_dumpable=2
|
||||
securityContext:
|
||||
privileged: true
|
||||
containers:
|
||||
- name: nginx-ingress-controller
|
||||
livenessProbe:
|
||||
timeoutSeconds: 1
|
||||
readinessProbe:
|
||||
timeoutSeconds: 1
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
- op: replace
|
||||
path: /apiVersion
|
||||
value: extensions/v1beta1
|
||||
3
test/e2e-image/overlay/deployment-namespace-patch.yaml
Normal file
3
test/e2e-image/overlay/deployment-namespace-patch.yaml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
- op: add
|
||||
path: /spec/template/spec/containers/0/args/-1
|
||||
value: "--watch-namespace=$(POD_NAMESPACE)"
|
||||
34
test/e2e-image/overlay/kustomization.yaml
Normal file
34
test/e2e-image/overlay/kustomization.yaml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
bases:
|
||||
- ../../../deploy/cloud-generic
|
||||
configMapGenerator:
|
||||
- name: nginx-configuration
|
||||
behavior: merge
|
||||
literals:
|
||||
- worker-processes=1
|
||||
patchesStrategicMerge:
|
||||
- deployment-e2e.yaml
|
||||
- service-protocol-tcp.yaml
|
||||
patchesJson6902:
|
||||
- path: deployment-namespace-patch.yaml
|
||||
target:
|
||||
group: apps
|
||||
kind: Deployment
|
||||
name: nginx-ingress-controller
|
||||
version: v1
|
||||
- path: service-cluster-patch.yaml
|
||||
target:
|
||||
kind: Service
|
||||
name: ingress-nginx
|
||||
version: v1
|
||||
- path: deployment-extension-group-patch.yaml
|
||||
target:
|
||||
group: apps
|
||||
kind: Deployment
|
||||
name: nginx-ingress-controller
|
||||
version: v1
|
||||
images:
|
||||
- name: quay.io/kubernetes-ingress-controller/nginx-ingress-controller
|
||||
newName: ingress-controller/nginx-ingress-controller
|
||||
newTag: dev
|
||||
4
test/e2e-image/overlay/service-cluster-patch.yaml
Normal file
4
test/e2e-image/overlay/service-cluster-patch.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
- op: remove
|
||||
path: /spec/externalTrafficPolicy
|
||||
- op: remove
|
||||
path: /spec/type
|
||||
14
test/e2e-image/overlay/service-protocol-tcp.yaml
Normal file
14
test/e2e-image/overlay/service-protocol-tcp.yaml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: ingress-nginx
|
||||
spec:
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: 80
|
||||
protocol: TCP
|
||||
- name: https
|
||||
port: 443
|
||||
targetPort: 443
|
||||
protocol: TCP
|
||||
Loading…
Add table
Add a link
Reference in a new issue