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