k8s_cobbler.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: cobbler
  5. namespace: cobbler
  6. labels:
  7. app: cobbler
  8. spec:
  9. selector:
  10. matchLabels:
  11. app: cobbler
  12. replicas: 1
  13. strategy:
  14. type: RollingUpdate
  15. template:
  16. metadata:
  17. labels:
  18. app: cobbler
  19. spec:
  20. hostNetwork: true
  21. volumes:
  22. - name: omnia-storage
  23. hostPath:
  24. path: /home/omnia/
  25. type: Directory
  26. - name: mnt-iso
  27. hostPath:
  28. path: /mnt/
  29. type: Directory
  30. containers:
  31. - name: cobbler
  32. image: 'localhost/cobbler:latest'
  33. imagePullPolicy: Never
  34. command:
  35. - /sbin/init
  36. ports:
  37. - containerPort: 25151
  38. - containerPort: 443
  39. - containerPort: 81
  40. - containerPort: 69
  41. protocol: UDP
  42. volumeMounts:
  43. - name: mnt-iso
  44. mountPath: /mnt
  45. - name: omnia-storage
  46. mountPath: /root/omnia
  47. securityContext:
  48. privileged: true