source-controller/config/manager/deployment.yaml

59 lines
1.3 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: controller
namespace: system
labels:
control-plane: controller
spec:
selector:
matchLabels:
app: source-controller
replicas: 1
template:
metadata:
labels:
app: source-controller
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9090"
spec:
terminationGracePeriodSeconds: 10
containers:
- name: manager
image: fluxcd/source-controller
imagePullPolicy: IfNotPresent
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
ports:
- containerPort: 8080
name: http
- containerPort: 9090
name: http-prom
args:
- --enable-leader-election
- --storage-path=/data
env:
- name: RUNTIME_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
resources:
limits:
cpu: 1000m
memory: 1Gi
requests:
cpu: 50m
memory: 64Mi
volumeMounts:
- name: data
mountPath: /data
- name: tmp
mountPath: /tmp
volumes:
- name: data
emptyDir: {}
- name: tmp
emptyDir: {}