Improved Kubernetes cluster documentation
This commit is contained in:
20
kubernetes-example/nginx.yml
Normal file
20
kubernetes-example/nginx.yml
Normal 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
|
Reference in New Issue
Block a user