mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
36 lines
852 B
YAML
36 lines
852 B
YAML
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: game-web
|
|
labels:
|
|
originalLabel : isHere
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: nginxo # has to match .spec.template.metadata.labels
|
|
serviceName: "nginxo"
|
|
replicas: 3 # by default is 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: nginxo # has to match .spec.selector.matchLabels
|
|
spec:
|
|
terminationGracePeriodSeconds: 10
|
|
containers:
|
|
- name: nginxo
|
|
image: k8s.gcr.io/nginx-but-no-slim:0.8
|
|
ports:
|
|
- containerPort: 8780
|
|
name: webp
|
|
volumeMounts:
|
|
- name: www
|
|
mountPath: /usr/share/nginxo/html
|
|
volumeClaimTemplates:
|
|
- metadata:
|
|
name: www
|
|
spec:
|
|
accessModes: [ "ReadWriteOnce" ]
|
|
storageClassName: "my-storage-class"
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|