GitOps for k8s
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

helm-operator-deployment.yaml 2.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. ---
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: flux-helm-operator
  6. spec:
  7. replicas: 1
  8. selector:
  9. matchLabels:
  10. name: flux-helm-operator
  11. strategy:
  12. type: Recreate
  13. template:
  14. metadata:
  15. labels:
  16. name: flux-helm-operator
  17. annotations:
  18. prometheus.io/scrape: "true"
  19. spec:
  20. serviceAccountName: flux
  21. volumes:
  22. # The following volume is for using a customised known_hosts file,
  23. # which you will need to do if you host your own git repo rather
  24. # than using github or the like. You'll also need to mount it
  25. # into the container, below.
  26. #
  27. # You may also wish to provide an ssh_config file,
  28. # mentioning more than one `IdentityFile`; for instance, if you're
  29. # using more than one GitHub repo. NB the entry key should be
  30. # "config" rather than "ssh_config" if mounted in ~/.ssh/.
  31. #
  32. # - name: sshdir
  33. # configMap:
  34. # name: flux-ssh-config
  35. # defaultMode: 0400
  36. #
  37. # You will need this volume if you're using a git repo that
  38. # needs an SSH key for access; e.g., a GitHub deploy key. If
  39. # you're using just one such repo, the default ssh_config
  40. # already points at /etc/fluxd/ssh/identity as a key. If you
  41. # want to use more than one key, you'll need to provide your own
  42. # ssh_config above, with an `IdentityFile` entry matching each
  43. # key in the secret mentioned here.
  44. #
  45. # - name: git-key
  46. # secret:
  47. # secretName: flux-git-deploy
  48. # defaultMode: 0400 # when mounted read-only, we won't be able to chmod
  49. #
  50. # These two volumes are for mounting a repositories.yaml file,
  51. # and providing a cache directory. The latter is needed because
  52. # mounting the former will make the cache/ directory read-only.
  53. #
  54. # - name: repositories-yaml
  55. # secret:
  56. # secretName: flux-helm-repositories
  57. # - name: repositories-cache
  58. # emptyDir: {}
  59. containers:
  60. - name: flux-helm-operator
  61. # There are no ":latest" images for helm-operator. Find the most recent
  62. # release or image version at https://hub.docker.com/r/weaveworks/helm-operator/tags
  63. # and replace the tag here.
  64. image: docker.io/weaveworks/helm-operator:0.8.0
  65. imagePullPolicy: IfNotPresent
  66. ports:
  67. - name: http
  68. containerPort: 3030
  69. resources:
  70. requests:
  71. cpu: 50m
  72. memory: 64Mi
  73. volumeMounts:
  74. # Include this if you need to mount a customised known_hosts or ssh_config
  75. # file; you'll also need the volume declared above.
  76. # - name: sshdir
  77. # mountPath: /root/.ssh
  78. # readOnly: true
  79. # - name: git-key
  80. # mountPath: /etc/fluxd/ssh
  81. # - name: repositories-yaml
  82. # mountPath: /var/fluxd/helm/repository
  83. # - name: repositories-cache
  84. # mountPath: /var/fluxd/helm/repository/cache