synchronization
This commit is contained in:
22
File/Templates-Yaml/statefulset.yaml
Normal file
22
File/Templates-Yaml/statefulset.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: statefulset-pods
|
||||
namespace: default
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: statefulset-pods
|
||||
serviceName: nginx-prot
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: statefulset-pods
|
||||
spec:
|
||||
containers:
|
||||
- name: nginx
|
||||
image: nginx:latest
|
||||
ports:
|
||||
- containerPort: 80
|
||||
protocol: TCP
|
Reference in New Issue
Block a user