MoJo2600 / pihole-kubernetes

PiHole on kubernetes
499 stars 173 forks source link

Error installing 2.0.0 with helm #168

Closed netnutmike closed 2 years ago

netnutmike commented 3 years ago

Hi, let me start out saying I am very new to using helm. I am trying to install the 2.0.0 release with using a load balancer. I do have the 1.7.6 version running per Jeff's video.

Here is my values file I created:

---
serviceWeb:
  loadBalancerIP: '10.232.1.153'
  type: LoadBalancer

serviceDns:
  loadBalancerIP: '10.232.1.153'
  type: LoadBalancer

serviceDhcp:
  enabled: false

ingress:
  enabled: true

resources:
  limits:
    cpu: 200m
    memory: 256Mi

persistentVolumeClaim:
  enabled: true

This is the error I get:

helm install --version '2.0.0' --namespace pihole --values pihole.yaml pihole mojo2600/pihole
Error: unable to build kubernetes objects from release manifest: unable to recognize "": no matches for kind "Ingress" in version "networking.k8s.io/v1"

I have a couple of questions based on the 1.7.6 version. I cannot see how to set the timezone or ntp or current time.

Also, I noticed that all requests seem to be coming from a node ip address and not the real client address.

Thank you for your patience around my lack of knowledge of helm.

Mike

MoJo2600 commented 3 years ago

Sorry for the late response. What is your kubernetes cluster version?

McMac commented 2 years ago

Got the same error. Cluster version (also followed Jeff's video based on HypriotOS v1.12.3):

Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.2", GitCommit:"8b5a19147530eaac9476b0ab82980b4088bbc1b2", GitTreeState:"clean", BuildDate:"2021-09-15T21:31:32Z", GoVersion:"go1.16.8", Compiler:"gc", Platform:"darwin/arm64"} Server Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.5+k3s1", GitCommit:"58ebdb2a2ec5318ca40649eb7bd31679cb679f71", GitTreeState:"clean", BuildDate:"2020-05-06T23:42:31Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/arm"} WARNING: version difference between client (1.22) and server (1.17) exceeds the supported minor version skew of +/-1

MoJo2600 commented 2 years ago

Could you try with the latest version of this chart. I have had no isses with the current version.

michael-burt commented 2 years ago

This issue is due to the Kubernetes cluster version. You must be on v1.19+ in order to use networking.k8s.io/v1.

See here: https://github.com/kubernetes/kubernetes/issues/90077#issuecomment-696199828

MoJo2600 commented 2 years ago

@michael-burt of course... I was looking at the Client Version, d'oh. I will add a hint to the readme.

I will close this issue, feel free to reopen / create a new issue if you have any other issues.