Add Pod and Deployment examples
This commit is contained in:
commit
fd21b566f1
3 changed files with 34 additions and 0 deletions
10
00-pod/pod.yaml
Normal file
10
00-pod/pod.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: nginx
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: nginx
|
||||||
|
image: nginx:1.14.2
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
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
|
||||||
3
README.md
Normal file
3
README.md
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# Кубы примеры
|
||||||
|
|
||||||
|
Крутим кубы, но не майнкрафт (возможно даже жаль)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue