Skip to content
Snippets Groups Projects
Commit 8e067295 authored by Ing. Klára Moravcová's avatar Ing. Klára Moravcová
Browse files

Merge branch 'kubeconfig_localhost' into 'master'

Kubeconfig localhost

See merge request kubernetes-infra-example!6
parents 9213b5a8 3c3706cd
No related branches found
No related tags found
No related merge requests found
......@@ -58,4 +58,13 @@ ssh -J ubuntu@<bastion_ip_address> ubuntu@<control-node_ip_address>
sudo -i
kubectl get nodes
```
#### Nginx Ingress Controller
Prerequisites: </br>
- helm - [install](https://helm.sh/docs/intro/install/)</br>
```
helm repo add nginx-stable https://helm.nginx.com/stable
helm repo update
helm install nginx-ingress nginx-stable/nginx-ingress --set rbac.create=true
kubectl get service
```
\ No newline at end of file
- name: Include kubeconfig_localhost variable
include_vars:
file: ~/kubernetes-infra-example/ansible/group_vars/k8s_cluster/k8s-cluster.yml
- name: Modify admin.conf
ansible.builtin.replace:
path: "../artifacts/admin.conf"
regexp: '\b(?:\d{1,3}\.){3}\d{1,3}\b'
replace: "{{ hostvars[groups['bastion'][0]].ansible_host }}"
become: false
when: kubeconfig_localhost == true
......@@ -12,11 +12,11 @@ metrics_server_enabled: true
# metrics_server_replicas: 1
# Nginx ingress controller deployment
ingress_nginx_enabled: true
ingress_nginx_host_network: true
ingress_nginx_enabled: false
#ingress_nginx_host_network: true
# ingress_nginx_service_type: LoadBalancer
# ingress_nginx_host_network: false
ingress_publish_status_address: ""
#ingress_publish_status_address: ""
# ingress_nginx_nodeselector:
# kubernetes.io/os: "linux"
# ingress_nginx_tolerations:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment