01-step-ca.yaml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. labels:
  5. app: ca
  6. name: ca
  7. namespace: step
  8. spec:
  9. type: ClusterIP
  10. ports:
  11. - port: 443
  12. targetPort: 4443
  13. selector:
  14. app: ca
  15. ---
  16. apiVersion: apps/v1
  17. kind: Deployment
  18. metadata:
  19. name: ca
  20. namespace: step
  21. labels:
  22. app: ca
  23. spec:
  24. replicas: 1
  25. selector:
  26. matchLabels:
  27. app: ca
  28. template:
  29. metadata:
  30. labels:
  31. app: ca
  32. spec:
  33. containers:
  34. - name: ca
  35. image: smallstep/step-ca:0.8.3
  36. env:
  37. - name: PWDPATH
  38. value: /home/step/password/password
  39. resources:
  40. requests:
  41. cpu: 100m
  42. memory: 20Mi
  43. readinessProbe:
  44. httpGet:
  45. path: /health
  46. port: 4443
  47. scheme: HTTPS
  48. initialDelaySeconds: 3
  49. periodSeconds: 3
  50. livenessProbe:
  51. httpGet:
  52. path: /health
  53. port: 4443
  54. scheme: HTTPS
  55. initialDelaySeconds: 3
  56. periodSeconds: 3
  57. volumeMounts:
  58. - name: config
  59. mountPath: /home/step/.step/config
  60. readOnly: true
  61. - name: certs
  62. mountPath: /home/step/.step/certs
  63. readOnly: true
  64. - name: secrets
  65. mountPath: /home/step/.step/secrets
  66. readOnly: true
  67. - name: ca-password
  68. mountPath: /home/step/password
  69. readOnly: true
  70. securityContext:
  71. runAsUser: 1000
  72. allowPrivilegeEscalation: false
  73. volumes:
  74. - name: certs
  75. configMap:
  76. name: certs
  77. - name: config
  78. configMap:
  79. name: config
  80. - name: secrets
  81. configMap:
  82. name: secrets
  83. - name: ca-password
  84. secret:
  85. secretName: ca-password