added k8s-nginx-ingress role
This commit is contained in:
parent
e6687cfe63
commit
47d718409e
14
ansible/roles/k8s-nginx-ingress/README.md
Normal file
14
ansible/roles/k8s-nginx-ingress/README.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
Role Name
|
||||||
|
=========
|
||||||
|
|
||||||
|
This roles installs official ingress-nginx via helm with values file in files/ and various fixes for modSecurity support.
|
||||||
|
|
||||||
|
License
|
||||||
|
-------
|
||||||
|
|
||||||
|
BSD
|
||||||
|
|
||||||
|
Author Information
|
||||||
|
------------------
|
||||||
|
|
||||||
|
An optional section for the role authors to include contact information, or a website (HTML is not allowed).
|
||||||
3
ansible/roles/k8s-nginx-ingress/defaults/main.yml
Normal file
3
ansible/roles/k8s-nginx-ingress/defaults/main.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#SPDX-License-Identifier: MIT-0
|
||||||
|
---
|
||||||
|
# defaults file for k8s-nginx-ingress
|
||||||
1241
ansible/roles/k8s-nginx-ingress/files/values.yaml
Normal file
1241
ansible/roles/k8s-nginx-ingress/files/values.yaml
Normal file
File diff suppressed because it is too large
Load Diff
3
ansible/roles/k8s-nginx-ingress/handlers/main.yml
Normal file
3
ansible/roles/k8s-nginx-ingress/handlers/main.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#SPDX-License-Identifier: MIT-0
|
||||||
|
---
|
||||||
|
# handlers file for k8s-nginx-ingress
|
||||||
35
ansible/roles/k8s-nginx-ingress/meta/main.yml
Normal file
35
ansible/roles/k8s-nginx-ingress/meta/main.yml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
#SPDX-License-Identifier: MIT-0
|
||||||
|
galaxy_info:
|
||||||
|
author: your name
|
||||||
|
description: your role description
|
||||||
|
company: your company (optional)
|
||||||
|
|
||||||
|
# If the issue tracker for your role is not on github, uncomment the
|
||||||
|
# next line and provide a value
|
||||||
|
# issue_tracker_url: http://example.com/issue/tracker
|
||||||
|
|
||||||
|
# Choose a valid license ID from https://spdx.org - some suggested licenses:
|
||||||
|
# - BSD-3-Clause (default)
|
||||||
|
# - MIT
|
||||||
|
# - GPL-2.0-or-later
|
||||||
|
# - GPL-3.0-only
|
||||||
|
# - Apache-2.0
|
||||||
|
# - CC-BY-4.0
|
||||||
|
license: license (GPL-2.0-or-later, MIT, etc)
|
||||||
|
|
||||||
|
min_ansible_version: 2.1
|
||||||
|
|
||||||
|
# If this a Container Enabled role, provide the minimum Ansible Container version.
|
||||||
|
# min_ansible_container_version:
|
||||||
|
|
||||||
|
galaxy_tags: []
|
||||||
|
# List tags for your role here, one per line. A tag is a keyword that describes
|
||||||
|
# and categorizes the role. Users find roles by searching for tags. Be sure to
|
||||||
|
# remove the '[]' above, if you add tags to this list.
|
||||||
|
#
|
||||||
|
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
|
||||||
|
# Maximum 20 tags per role.
|
||||||
|
|
||||||
|
dependencies: []
|
||||||
|
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
|
||||||
|
# if you add dependencies to this list.
|
||||||
29
ansible/roles/k8s-nginx-ingress/tasks/main.yml
Normal file
29
ansible/roles/k8s-nginx-ingress/tasks/main.yml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
#SPDX-License-Identifier: MIT-0
|
||||||
|
---
|
||||||
|
# tasks file for k8s-nginx-ingress
|
||||||
|
|
||||||
|
- name: Add helm repository
|
||||||
|
kubernetes.core.helm_repository:
|
||||||
|
name: ingress-nginx
|
||||||
|
repo_url: https://kubernetes.github.io/ingress-nginx
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Copy value files
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: files/values.yaml
|
||||||
|
dest: /root/ingress-values.yaml
|
||||||
|
|
||||||
|
- name: Install ingress-nginx
|
||||||
|
kubernetes.core.helm:
|
||||||
|
name: ingress-nginx
|
||||||
|
chart_ref: ingress-nginx/ingress-nginx
|
||||||
|
namespace: ingress
|
||||||
|
create_namespace: true
|
||||||
|
atomic: true
|
||||||
|
kubeconfig: /etc/rancher/k3s/k3s.yaml
|
||||||
|
wait: yes
|
||||||
|
timeout: 600s
|
||||||
|
values_files:
|
||||||
|
/root/ingress-values.yaml
|
||||||
|
state: present
|
||||||
|
|
||||||
3
ansible/roles/k8s-nginx-ingress/tests/inventory
Normal file
3
ansible/roles/k8s-nginx-ingress/tests/inventory
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#SPDX-License-Identifier: MIT-0
|
||||||
|
localhost
|
||||||
|
|
||||||
6
ansible/roles/k8s-nginx-ingress/tests/test.yml
Normal file
6
ansible/roles/k8s-nginx-ingress/tests/test.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#SPDX-License-Identifier: MIT-0
|
||||||
|
---
|
||||||
|
- hosts: localhost
|
||||||
|
remote_user: root
|
||||||
|
roles:
|
||||||
|
- k8s-nginx-ingress
|
||||||
3
ansible/roles/k8s-nginx-ingress/vars/main.yml
Normal file
3
ansible/roles/k8s-nginx-ingress/vars/main.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#SPDX-License-Identifier: MIT-0
|
||||||
|
---
|
||||||
|
# vars file for k8s-nginx-ingress
|
||||||
Loading…
x
Reference in New Issue
Block a user