From 00fd193a3c9ecb0b35e83cee22653e2d6295efeb Mon Sep 17 00:00:00 2001 From: David Fry Date: Wed, 28 Feb 2024 08:43:29 +0000 Subject: [PATCH] set dns in microk8s config, rm from addons config --- mojaloop/iac/playbooks/argomicrok8s_cluster_deploy.yaml | 1 - mojaloop/iac/roles/microk8s/defaults/main.yml | 7 ++----- .../iac/roles/microk8s/templates/microk8s-config.yaml.j2 | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/mojaloop/iac/playbooks/argomicrok8s_cluster_deploy.yaml b/mojaloop/iac/playbooks/argomicrok8s_cluster_deploy.yaml index 66839689..ba39be64 100644 --- a/mojaloop/iac/playbooks/argomicrok8s_cluster_deploy.yaml +++ b/mojaloop/iac/playbooks/argomicrok8s_cluster_deploy.yaml @@ -25,7 +25,6 @@ microk8s_group_WORKERS: "agent" add_workers_to_hostfile: true microk8s_plugins: - dns: "{{ microk8s_dns_resolvers }}" ingress: false # Ingress controller for external access metrics-server: true # K8s Metrics Server for API access to service metrics rbac: true # Role-Based Access Control for authorisation diff --git a/mojaloop/iac/roles/microk8s/defaults/main.yml b/mojaloop/iac/roles/microk8s/defaults/main.yml index 5a694d40..00076e63 100644 --- a/mojaloop/iac/roles/microk8s/defaults/main.yml +++ b/mojaloop/iac/roles/microk8s/defaults/main.yml @@ -8,10 +8,10 @@ microk8s_version: "1.27/stable" microk8s_disable_snap_autoupdate: false # plugin configuration -microk8s_dns_resolvers: 1.1.1.1 +microk8s_dns_resolvers: 8.8.8.8,8.8.4.4 registry_size: 20Gi microk8s_plugins: - dns: "{{ microk8s_dns_resolvers }}" # CoreDNS + #dns: "{{ microk8s_dns_resolvers }}" # CoreDNS host-access: true # Allow Pods connecting to Host services smoothly ingress: false # Ingress controller for external access metrics-server: true # K8s Metrics Server for API access to service metrics @@ -68,6 +68,3 @@ kubeapi_loadbalancer_fqdn: nlb.lb.com enable_registry_mirror: false registry_mirror_fqdn: example.com registry_mirror_port: 9000 -teardown: false -microk8s_root_path: /var/snap/microk8s/ -longhorn_data_path: /var/lib/longhorn/ \ No newline at end of file diff --git a/mojaloop/iac/roles/microk8s/templates/microk8s-config.yaml.j2 b/mojaloop/iac/roles/microk8s/templates/microk8s-config.yaml.j2 index f2c1f118..bd094f79 100644 --- a/mojaloop/iac/roles/microk8s/templates/microk8s-config.yaml.j2 +++ b/mojaloop/iac/roles/microk8s/templates/microk8s-config.yaml.j2 @@ -3,4 +3,4 @@ version: 0.1.0 addons: - name: dns - disable: true \ No newline at end of file + args: [{{ microk8s_dns_resolvers }}] \ No newline at end of file