setup ingress for hello-world to use https only
This commit is contained in:
14
ansible-5/roles/prod.k3s/tasks/hello-world.yaml
Normal file
14
ansible-5/roles/prod.k3s/tasks/hello-world.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
# 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
|
||||
@@ -7,9 +7,10 @@
|
||||
# add helm repositories
|
||||
#- include_tasks: add_repos.yml
|
||||
|
||||
|
||||
- include_tasks: cert_manager.yml
|
||||
|
||||
- include_tasks: hello-world.yaml
|
||||
|
||||
# https://artifacthub.io/packages/helm/twuni/docker-registry
|
||||
#- name: Deploy latest version of docker-registry in dev-tools namespace
|
||||
# local_action:
|
||||
|
||||
Reference in New Issue
Block a user