4
0

k8s_deployment.yml 777 B

12345678910111213141516171819202122232425262728293031323334353637
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: olivetin
  5. spec:
  6. replicas: 1
  7. selector:
  8. matchLabels:
  9. app: olivetin
  10. template:
  11. metadata:
  12. labels:
  13. app: olivetin
  14. spec:
  15. containers:
  16. - name: olivetin
  17. image: docker.io/jamesread/olivetin:latest
  18. ports:
  19. - containerPort: 1337
  20. volumeMounts:
  21. - name: olivetin-config
  22. mountPath: "/config"
  23. readOnly: true
  24. livenessProbe:
  25. exec:
  26. command:
  27. - curl
  28. - localhost:1337
  29. initialDelaySeconds: 5
  30. periodSeconds: 30
  31. volumes:
  32. - name: olivetin-config
  33. configMap:
  34. name: olivetin-config