15 lines
436 B
YAML
15 lines
436 B
YAML
---
|
|
# https://www.jeffgeerling.com/blog/2022/quick-hello-world-http-deployment-testing-k3s-and-traefik
|
|
|
|
- name: create hello world resources
|
|
kubernetes.core.k8s:
|
|
kubeconfig: "/etc/rancher/k3s/k3s.yaml"
|
|
state: present
|
|
definition: "{{ lookup('file', item) | from_yaml }}"
|
|
loop:
|
|
- hello-world/configmap.yaml
|
|
- hello-world/ingress.yaml
|
|
- hello-world/service.yaml
|
|
- hello-world/deployment.yaml
|
|
become: true
|