apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - kitchen.yaml - secrets.yaml configMapGenerator: - name: kitchen namespace: kitchen behavior: merge files: - config.yaml patches: - patch: |- apiVersion: apps/v1 kind: Deployment metadata: name: kitchen spec: template: spec: imagePullSecrets: - name: imagepull-gitea target: kind: Deployment labelSelector: app.kubernetes.io/name=kitchen