49 lines
1008 B
YAML
49 lines
1008 B
YAML
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
|
|
namespace: restic-exporter
|
|
|
|
labels:
|
|
- pairs:
|
|
app.kubernetes.io/instance: restic-exporter
|
|
|
|
resources:
|
|
- namespace.yaml
|
|
- network-policy.yaml
|
|
- restic-exporter.yaml
|
|
- secrets.yaml
|
|
- ../dch-root-ca
|
|
|
|
configMapGenerator:
|
|
- name: restic-exporter
|
|
envs:
|
|
- restic-exporter.env
|
|
|
|
patches:
|
|
- patch: |-
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: restic-exporter
|
|
spec:
|
|
template:
|
|
spec:
|
|
containers:
|
|
- name: restic-exporter
|
|
env:
|
|
- name: RESTIC_CACERT
|
|
value: /run/dch-ca/dch-root-ca.crt
|
|
envFrom:
|
|
- secretRef:
|
|
name: restic-s3
|
|
- configMapRef:
|
|
name: restic-exporter
|
|
volumeMounts:
|
|
- mountPath: /run/dch-ca
|
|
name: dch-ca
|
|
readOnly: true
|
|
volumes:
|
|
- name: dch-ca
|
|
configMap:
|
|
name: dch-root-ca
|