Skip to content

Instantly share code, notes, and snippets.

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