Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stable/metallb fails to install, possibly due to deprecation #44

Open
eriknelson opened this issue Nov 25, 2020 · 1 comment
Open

stable/metallb fails to install, possibly due to deprecation #44

eriknelson opened this issue Nov 25, 2020 · 1 comment

Comments

@eriknelson
Copy link
Collaborator

TASK [k8s_nginx_ingress : Install MetalLB] ****************************************************************************************************************************************************
fatal: [panamera.kube.nsk.io]: FAILED! => {                                                                                                                                                    
    "changed": false,                                                                                                                                                                          
    "command": "/bin/helm --namespace=metallb-system show chart stable/metallb"                                                                                                                
}                                                                                                                                                                                              
                                                                                                                                                                                               
MSG:                                                                                                                                                                                           
                                                                                                                                                                                               
Failure when executing Helm command. Exited 1.                                                                                                                                                 
stdout:                                                                                                                                                                                        
stderr: Error: failed to download "stable/metallb" (hint: running `helm repo update` may help)      

Manually ran the update without being able to pull, it looks like the stable chart has been deprecated in favor of bitnami?

@eriknelson
Copy link
Collaborator Author

FYI bitnami worked great for me:

diff --git a/roles/k8s_nginx_ingress/tasks/main.yml b/roles/k8s_nginx_ingress/tasks/main.yml
index 975d477..035b273 100644
--- a/roles/k8s_nginx_ingress/tasks/main.yml
+++ b/roles/k8s_nginx_ingress/tasks/main.yml
@@ -4,10 +4,10 @@
     msg: "metallb_ip_range must be set, not '{{ metallb_ip_range }}'"
   when: not metallb_ip_range
 
-- name: Add stable chart repo
+- name: Add bitnami chart repo
   community.kubernetes.helm_repository:
-    name: stable
-    repo_url: "https://kubernetes-charts.storage.googleapis.com"
+    name: bitnami
+    repo_url: https://charts.bitnami.com/bitnami
 
 - name: Add ingress_nginx helm repo
   community.kubernetes.helm_repository:
@@ -28,7 +28,7 @@
     community.kubernetes.helm:
       name: metallb
       namespace: metallb-system
-      chart_ref: stable/metallb
+      chart_ref: bitnami/metallb
       values:
         configInline:
           address-pools:
@@ -39,7 +39,7 @@
       wait: yes
 
   rescue:
-    - name: Uninstall failed metallb relesae
+    - name: Uninstall failed metallb release
       community.kubernetes.helm:
         name: metallb
         namespace: metallb-system
@@ -58,7 +58,7 @@
       wait: yes
 
   rescue:
-    - name: Uninstall failed ingress-nginx relesae
+    - name: Uninstall failed ingress-nginx release
       community.kubernetes.helm:
         name: ingress-nginx
         namespace: ingress-nginx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant