Skip to content

Instantly share code, notes, and snippets.

@jbek7
Last active April 20, 2019 19:39
Show Gist options
  • Save jbek7/599eff5d76dab2e25457f18100108c2d to your computer and use it in GitHub Desktop.
Save jbek7/599eff5d76dab2e25457f18100108c2d to your computer and use it in GitHub Desktop.
Ansible K8S ConfigMap generation
---
- name: Generate configmap k8s
template: src=templates/configmap.yaml dest=.k8s/configmap-output.yaml
vars:
- a_config_path: "config/a-config.yaml"
- b_config_path: "config/b-config.yaml"
- name: Apply configmap
k8s:
state: present
src: .k8s/configmap-output.yaml
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment