Skip to content

Instantly share code, notes, and snippets.

@curipha
Created January 3, 2023 05:51
Show Gist options
  • Save curipha/619bae836abda12294e6c9046a54f6fd to your computer and use it in GitHub Desktop.
Save curipha/619bae836abda12294e6c9046a54f6fd to your computer and use it in GitHub Desktop.
K8s - configMapGenerator with ArgoCD
apiVersion: apps/v1
kind: Deployment
metadata:
name: ubuntu
spec:
replicas: 2
selector:
matchLabels:
app: ubuntu
template:
metadata:
labels:
app: ubuntu
spec:
containers:
- name: ubuntu
image: 'ubuntu:latest'
command:
- sleep
- infinity
envFrom:
- configMapRef:
name: example-configmap
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml
configMapGenerator:
- name: example-configmap
envs:
- value.env
options:
annotations:
argocd.argoproj.io/compare-options: IgnoreExtraneous
FOO=bar
FOO1=qux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment