
This adds functions for the helm-controller and source-controller from Flux v2 [0]. The helm-controller depends on the source-controller and so this includes a composite to wrap both. These components replace the Helm Operator, which is now removed from the gating setup. The Helm Operator function itself will be removed after a suitable migration period. This also adds a format for Helm chart and Helm repository sourcing to the versions catalog. [0]: https://fluxcd.github.io/flux2 Closes: #372 Change-Id: I7287f1bb5b1ebd1dba9920cc0bed8c867720b4c1 Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
82 lines
2.0 KiB
YAML
82 lines
2.0 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/instance: flux-system
|
|
app.kubernetes.io/version: v0.2.0
|
|
control-plane: controller
|
|
name: source-controller
|
|
namespace: flux-system
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: source-controller
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
prometheus.io/port: "8080"
|
|
prometheus.io/scrape: "true"
|
|
labels:
|
|
app: source-controller
|
|
spec:
|
|
containers:
|
|
- args:
|
|
- --events-addr=
|
|
- --watch-all-namespaces=true
|
|
- --log-level=info
|
|
- --log-json
|
|
- --enable-leader-election
|
|
- --storage-path=/data
|
|
env:
|
|
- name: RUNTIME_NAMESPACE
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.namespace
|
|
- name: http_proxy
|
|
value: REPLACEMENT_HTTP_PROXY
|
|
- name: https_proxy
|
|
value: REPLACEMENT_HTTPS_PROXY
|
|
- name: no_proxy
|
|
value: REPLACEMENT_NO_PROXY
|
|
image: ghcr.io/fluxcd/source-controller:v0.2.1
|
|
imagePullPolicy: IfNotPresent
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: http
|
|
name: manager
|
|
ports:
|
|
- containerPort: 9090
|
|
name: http
|
|
- containerPort: 8080
|
|
name: http-prom
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: http
|
|
resources:
|
|
limits:
|
|
cpu: 1000m
|
|
memory: 1Gi
|
|
requests:
|
|
cpu: 50m
|
|
memory: 64Mi
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
readOnlyRootFilesystem: true
|
|
volumeMounts:
|
|
- mountPath: /data
|
|
name: data
|
|
- mountPath: /tmp
|
|
name: tmp
|
|
nodeSelector:
|
|
kubernetes.io/arch: amd64
|
|
kubernetes.io/os: linux
|
|
terminationGracePeriodSeconds: 10
|
|
volumes:
|
|
- emptyDir: {}
|
|
name: data
|
|
- emptyDir: {}
|
|
name: tmp
|