github.com/oam-dev/kubevela@v1.9.11/e2e/addon/mock/testdata/fluxcd/resources/deployment/source-controller.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    labels:
     5      app.kubernetes.io/instance: flux-system
     6      control-plane: controller
     7    name: flux-source-controller
     8    namespace: flux-system
     9  spec:
    10    replicas: 1
    11    selector:
    12      matchLabels:
    13        app: source-controller
    14    strategy:
    15      type: Recreate
    16    template:
    17      metadata:
    18        annotations:
    19          prometheus.io/port: "8080"
    20          prometheus.io/scrape: "true"
    21        labels:
    22          app: source-controller
    23      spec:
    24        containers:
    25          - args:
    26              - --events-addr=http://notification-controller/
    27              - --watch-all-namespaces
    28              - --log-level=info
    29              - --log-encoding=json
    30              - --enable-leader-election
    31              - --storage-path=/data
    32              - --storage-adv-addr=source-controller.$(RUNTIME_NAMESPACE).svc.cluster.local.
    33            env:
    34              - name: RUNTIME_NAMESPACE
    35                valueFrom:
    36                  fieldRef:
    37                    fieldPath: metadata.namespace
    38            image: fluxcd/source-controller:v0.15.3
    39            imagePullPolicy: IfNotPresent
    40            livenessProbe:
    41              httpGet:
    42                path: /healthz
    43                port: healthz
    44            name: manager
    45            ports:
    46              - containerPort: 9090
    47                name: http
    48              - containerPort: 8080
    49                name: http-prom
    50              - containerPort: 9440
    51                name: healthz
    52            readinessProbe:
    53              httpGet:
    54                path: /
    55                port: http
    56            resources:
    57              limits:
    58                cpu: 1000m
    59                memory: 1Gi
    60              requests:
    61                cpu: 50m
    62                memory: 64Mi
    63            securityContext:
    64              allowPrivilegeEscalation: false
    65              readOnlyRootFilesystem: true
    66            volumeMounts:
    67              - mountPath: /data
    68                name: data
    69              - mountPath: /tmp
    70                name: tmp
    71        securityContext:
    72          fsGroup: 1337
    73        serviceAccountName: sa-source-controller
    74        terminationGracePeriodSeconds: 10
    75        volumes:
    76          - emptyDir: { }
    77            name: data
    78          - emptyDir: { }
    79            name: tmp