Add Pod and Deployment examples
This commit is contained in:
commit
fd21b566f1
3 changed files with 34 additions and 0 deletions
21
01-deployments/deployment.yaml
Normal file
21
01-deployments/deployment.yaml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: nginx-deployment
|
||||
labels:
|
||||
app: &app nginx
|
||||
spec:
|
||||
replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app: *app
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: *app
|
||||
spec:
|
||||
containers:
|
||||
- name: *app
|
||||
image: nginx:1.28.2-alpine
|
||||
ports:
|
||||
- containerPort: 80
|
||||
Loading…
Add table
Add a link
Reference in a new issue