Skip to content

Instantly share code, notes, and snippets.

@kahootali
Last active September 21, 2021 17:19
Show Gist options
  • Save kahootali/bb67b8c611f1f22dad65b165f96a7370 to your computer and use it in GitHub Desktop.
Save kahootali/bb67b8c611f1f22dad65b165f96a7370 to your computer and use it in GitHub Desktop.
Kubernetes statefulset manifest to deploy counter app
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: counter
spec:
serviceName: "counter-app"
selector:
matchLabels:
app: counter
replicas: 1
template:
metadata:
labels:
app: counter
spec:
containers:
- name: counter
image: "kahootali/counter:1.1"
volumeMounts:
- name: counter
mountPath: /app/
volumeClaimTemplates:
- metadata:
name: counter
spec:
accessModes: [ "ReadWriteMany" ]
storageClassName: efs
resources:
requests:
storage: 50Mi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment