Skip to content

Instantly share code, notes, and snippets.

@kahootali
Last active April 19, 2023 20:55
Show Gist options
  • Save kahootali/0261db5055e06a44e063d09d1f27a03a to your computer and use it in GitHub Desktop.
Save kahootali/0261db5055e06a44e063d09d1f27a03a to your computer and use it in GitHub Desktop.
Kubernetes daemonset manifest to deploy counter app
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: counter-app
spec:
selector:
matchLabels:
app: counter
template:
metadata:
name: counter-app
labels:
app: counter
spec:
tolerations:
- effect: NoSchedule
operator: Exists
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