Last active
September 21, 2021 17:19
-
-
Save kahootali/bb67b8c611f1f22dad65b165f96a7370 to your computer and use it in GitHub Desktop.
Kubernetes statefulset manifest to deploy counter app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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