Improved Kubernetes cluster documentation

This commit is contained in:
Timo Geier
2021-06-10 11:13:55 +02:00
parent 350d47b120
commit 3a1c789fcf
3 changed files with 92 additions and 3 deletions

View File

@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
namespace: web-test
spec:
selector:
matchLabels:
app: nginx-deployment
replicas: 3 # tells deployment to run 3 pods matching the template
template:
metadata:
labels:
app: nginx-deployment
spec:
containers:
- name: nginx
image: nginx:latest
ports:
- containerPort: 80