Add kustomize
This commit is contained in:
parent
5fc864c65d
commit
d021c3e63a
9 changed files with 91 additions and 3 deletions
21
nginx/kustomize/base/deployment.yaml
Normal file
21
nginx/kustomize/base/deployment.yaml
Normal file
|
@ -0,0 +1,21 @@
|
|||
kind: Deployment
|
||||
apiVersion: apps/v1
|
||||
metadata:
|
||||
name: app-deployment
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: nginx
|
||||
image: nginx
|
||||
ports:
|
||||
- containerPort: 80
|
||||
resources:
|
||||
requests:
|
||||
memory: "32Mi"
|
||||
cpu: 128m
|
||||
limits:
|
||||
memory: "64Mi"
|
||||
cpu: 256m
|
3
nginx/kustomize/base/kustomization.yaml
Normal file
3
nginx/kustomize/base/kustomization.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
resources:
|
||||
- deployment.yaml
|
||||
- service.yaml
|
10
nginx/kustomize/base/service.yaml
Normal file
10
nginx/kustomize/base/service.yaml
Normal file
|
@ -0,0 +1,10 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: app-service
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8000
|
||||
targetPort: 80
|
Loading…
Add table
Add a link
Reference in a new issue