Last active
April 19, 2023 20:55
-
-
Save kahootali/0261db5055e06a44e063d09d1f27a03a to your computer and use it in GitHub Desktop.
Kubernetes daemonset 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: 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