Kubernetes/File/Templates-Yaml/statefulset.yaml
offends 7a2f41e7d6
All checks were successful
continuous-integration/drone Build is passing
synchronization
2024-08-07 18:54:39 +08:00

22 lines
409 B
YAML

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