Skip to content

Commit

Permalink
Merge pull request #27 from mojaloop/init-microk8s-without-dns
Browse files Browse the repository at this point in the history
set dns in microk8s config, rm from addons config
  • Loading branch information
dfry authored Feb 28, 2024
2 parents 8e4292f + 00fd193 commit 583b898
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion mojaloop/iac/playbooks/argomicrok8s_cluster_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 2 additions & 5 deletions mojaloop/iac/roles/microk8s/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
version: 0.1.0
addons:
- name: dns
disable: true
args: [{{ microk8s_dns_resolvers }}]

0 comments on commit 583b898

Please sign in to comment.