Open ghost opened 2 years ago
Hi, Just change the port for pihole-web. I use following values.yaml file:
replicaCount: 1
persistentVolumeClaim:
enabled: true
ingress:
enabled: false
serviceWeb:
loadBalancerIP: 10.61.61.111
annotations:
metallb.universe.tf/allow-shared-ip: pihole-svc
type: LoadBalancer
http:
port: 8080
https:
port: 8443
serviceDns:
loadBalancerIP: 10.61.61.111
annotations:
metallb.universe.tf/allow-shared-ip: pihole-svc
type: LoadBalancer
resources:
limits:
cpu: 200m
memory: 256Mi
requests:
cpu: 100m
memory: 128Mi
From what I have been learning with k3s traefik, we should not need to change the the service to loadbalancer for pihole. It should remain on clusterip. There is something else that is missing and I havent figured it out yet. I get a 404 but that is as close as I get.
@avendretter I have figured it out for k3s traefik ingress. This is the basic values.yml to get it working.
---
ingress:
enabled: true
adminPassword: admin
Then edit your /etc/hosts file with loadbalancer ip chart-example.local
The chart-example.local is the default value in the complete values file. You can change that in the values file but adding a line to ingress so that it looks like this
ingress:
enabled: true
hosts:
# virtualHost (default value is pi.hole) will be appended to the hosts
- pihole.home
Then update your /etc/hosts with the lb ip and the host you put for ingress.
For some reason when you try to go to pi.hole it just gives a 404 on the cluster.
I think the issue here is the comment in the values file:
# virtualHost (default value is pi.hole) will be appended to the hosts
After the deployment using the default values, I can only access the console as "chart-example.local" but not as "pi.hole":
$ kubectl get ingress --all-namespaces
NAMESPACE NAME CLASS HOSTS ADDRESS PORTS AGE
pihole pihole <none> chart-example.local 192.168.2.157,192.168.2.164 80 102s
Either the comment is wrong or the deployment does not work as the comment stipulates.
I think #221 is related to this issue. But I have no idea how to solve this. Any ideas?
Hello,
I am running a k3s cluster on two raspberryPis.
I am noticing, that having traefik running AND running it on port 80 could be a problem.
To get Pi-hole up dan running I was using this command
using the following values.yaml file:
I noticed, that the annotation set to use
metallb
and nottraefik
That being said, I'd like to ask kindly for advice how to setup the annotations to work with traefik in order to get theserviceWeb
up and running. I hope this is the issue why thepihole-web
service is not startingThanks in advance!