manifests.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. ---
  2. apiVersion: batch/v1
  3. kind: Job
  4. metadata:
  5. generateName: upgrade-sql-schema
  6. annotations:
  7. helm.sh/hook: pre-install
  8. helm.sh/hook-weight: "-2"
  9. spec:
  10. template:
  11. spec:
  12. containers:
  13. - name: upgrade-sql-schema
  14. image: alpine:latest
  15. command: ["sleep", "5"]
  16. restartPolicy: Never
  17. ---
  18. apiVersion: batch/v1
  19. kind: Job
  20. metadata:
  21. name: maint-page-up
  22. annotations:
  23. helm.sh/hook: pre-install
  24. helm.sh/hook-delete-policy: before-hook-creation
  25. helm.sh/hook-weight: "-1"
  26. spec:
  27. template:
  28. spec:
  29. containers:
  30. - name: page-up
  31. image: alpine:latest
  32. command: ["sleep", "2"]
  33. restartPolicy: Never
  34. backoffLimit: 0
  35. ---
  36. apiVersion: apps/v1
  37. kind: ReplicaSet
  38. metadata:
  39. name: frontend
  40. spec:
  41. replicas: 1
  42. selector:
  43. matchLabels:
  44. tier: frontend
  45. template:
  46. metadata:
  47. labels:
  48. tier: frontend
  49. spec:
  50. containers:
  51. - name: main
  52. image: nginx:latest
  53. ---
  54. apiVersion: v1
  55. kind: Service
  56. metadata:
  57. name: frontend
  58. annotations:
  59. helm.sh/hook-weight: "2"
  60. spec:
  61. selector:
  62. tier: frontend
  63. ports:
  64. - protocol: TCP
  65. port: 80
  66. targetPort: 80
  67. ---
  68. apiVersion: batch/v1
  69. kind: Job
  70. metadata:
  71. name: maint-page-down
  72. annotations:
  73. helm.sh/hook: post-install
  74. helm.sh/hook-delete-policy: before-hook-creation
  75. spec:
  76. template:
  77. spec:
  78. containers:
  79. - name: page-down
  80. image: alpine:latest
  81. command: ["sleep", "2"]
  82. restartPolicy: Never