Add kustomize
This commit is contained in:
parent
5fc864c65d
commit
d021c3e63a
9 changed files with 91 additions and 3 deletions
18
nginx/kustomize/overlays/default/ingress.yaml
Normal file
18
nginx/kustomize/overlays/default/ingress.yaml
Normal file
|
@ -0,0 +1,18 @@
|
|||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: app-ingress
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/rewrite-target: /
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- http:
|
||||
paths:
|
||||
- path: /nginx
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: app-service
|
||||
port:
|
||||
number: 8000
|
23
nginx/kustomize/overlays/default/kustomization.yaml
Normal file
23
nginx/kustomize/overlays/default/kustomization.yaml
Normal file
|
@ -0,0 +1,23 @@
|
|||
resources:
|
||||
- ../../base
|
||||
- ingress.yaml
|
||||
|
||||
namespace: default
|
||||
|
||||
labels:
|
||||
- includeSelectors: true
|
||||
pairs:
|
||||
app: nginx
|
||||
|
||||
commonAnnotations:
|
||||
owner: florian
|
||||
|
||||
namePrefix: nginx-
|
||||
|
||||
images:
|
||||
- name: nginx
|
||||
newName: nginx
|
||||
newTag: 1.14.2
|
||||
|
||||
patches:
|
||||
- path: replica.yaml
|
6
nginx/kustomize/overlays/default/replica.yaml
Normal file
6
nginx/kustomize/overlays/default/replica.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
kind: Deployment
|
||||
apiVersion: apps/v1
|
||||
metadata:
|
||||
name: app-deployment
|
||||
spec:
|
||||
replicas: 2
|
Loading…
Add table
Add a link
Reference in a new issue