Добавлены services и statefulset
This commit is contained in:
parent
fd21b566f1
commit
c1ce0dcb2d
6 changed files with 102 additions and 0 deletions
22
03-statefulset/deployment.yaml
Normal file
22
03-statefulset/deployment.yaml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: nginx-deployment
|
||||
labels:
|
||||
app: &app nginx
|
||||
spec:
|
||||
replicas: 3
|
||||
serviceName: "nginx-srv"
|
||||
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