Add k8s-poc-demo application
This commit is contained in:
parent
27cac3f191
commit
bb858532e0
3 changed files with 44 additions and 0 deletions
28
deploy/k8s-poc-demo/base/deployment.yaml
Normal file
28
deploy/k8s-poc-demo/base/deployment.yaml
Normal file
|
@ -0,0 +1,28 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: k8s-poc-nginx-deployment
|
||||
labels:
|
||||
app: nginx
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: nginx
|
||||
replicas: 2
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: nginx
|
||||
spec:
|
||||
containers:
|
||||
- name: nginx
|
||||
image: nginx:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- containerPort: 80
|
||||
resources:
|
||||
requests:
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "256Mi"
|
||||
cpu: "150m"
|
3
deploy/k8s-poc-demo/base/kustomization.yaml
Normal file
3
deploy/k8s-poc-demo/base/kustomization.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
resources:
|
||||
- deployment.yaml
|
||||
- service.yaml
|
13
deploy/k8s-poc-demo/base/service.yaml
Normal file
13
deploy/k8s-poc-demo/base/service.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: k8s-poc-nginx-service
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
selector:
|
||||
app: nginx
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
name: http
|
||||
protocol: TCP
|
Loading…
Reference in a new issue