I’ve deployed pihole in my rancher 4 node cluster set up. I have been losely following PiHole on Docker and Kubernetes (I almost gave up) - YouTube
I have the ports configured(at least I think) and bind mounts set up. It launched with no errors but I am unable to reach the AdminUI.
Here is my current configuration for it. This is without the ingress set up. I have tried all 3 ways to set up the ingress.
apiVersion: v1
kind: Pod
metadata:
annotations:
cni.projectcalico.org/containerID: 644ef880a416bbb072d146871d297d311c496f97928986789bda8a807e511f0a
cni.projectcalico.org/podIP: 10.42.182.223/32
cni.projectcalico.org/podIPs: 10.42.182.223/32
kubernetes.io/psp: global-unrestricted-psp
creationTimestamp: "2022-10-13T18:37:40Z"
generateName: pihole-6cfbcb6dbc-
labels:
pod-template-hash: 6cfbcb6dbc
workload.user.cattle.io/workloadselector: apps.deployment-default-pihole
managedFields:
- apiVersion: v1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:generateName: {}
f:labels:
.: {}
f:pod-template-hash: {}
f:workload.user.cattle.io/workloadselector: {}
f:ownerReferences:
.: {}
k:{"uid":"83396e58-cec7-4f53-bcd4-2b09906ecf2a"}: {}
f:spec:
f:affinity: {}
f:containers:
k:{"name":"container-0"}:
.: {}
f:env:
.: {}
k:{"name":"DNS1"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"DNS2"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"ServerIP"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"TZ"}:
.: {}
f:name: {}
f:value: {}
f:image: {}
f:imagePullPolicy: {}
f:name: {}
f:ports:
.: {}
k:{"containerPort":53,"protocol":"TCP"}:
.: {}
f:containerPort: {}
f:name: {}
f:protocol: {}
k:{"containerPort":53,"protocol":"UDP"}:
.: {}
f:containerPort: {}
f:name: {}
f:protocol: {}
k:{"containerPort":8001,"protocol":"TCP"}:
.: {}
f:containerPort: {}
f:name: {}
f:protocol: {}
f:resources: {}
f:terminationMessagePath: {}
f:terminationMessagePolicy: {}
f:volumeMounts:
.: {}
k:{"mountPath":"/etc-dnsmasq.d/"}:
.: {}
f:mountPath: {}
f:name: {}
k:{"mountPath":"/etc/pihole"}:
.: {}
f:mountPath: {}
f:name: {}
f:dnsConfig:
.: {}
f:nameservers: {}
f:dnsPolicy: {}
f:enableServiceLinks: {}
f:restartPolicy: {}
f:schedulerName: {}
f:securityContext: {}
f:terminationGracePeriodSeconds: {}
f:volumes:
.: {}
k:{"name":"pihole-dnsmasq"}:
.: {}
f:hostPath:
.: {}
f:path: {}
f:type: {}
f:name: {}
k:{"name":"pihole-etc"}:
.: {}
f:hostPath:
.: {}
f:path: {}
f:type: {}
f:name: {}
manager: kube-controller-manager
operation: Update
time: "2022-10-13T18:37:40Z"
- apiVersion: v1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
f:cni.projectcalico.org/containerID: {}
f:cni.projectcalico.org/podIP: {}
f:cni.projectcalico.org/podIPs: {}
manager: Go-http-client
operation: Update
subresource: status
time: "2022-10-13T18:37:41Z"
- apiVersion: v1
fieldsType: FieldsV1
fieldsV1:
f:status:
f:conditions:
k:{"type":"ContainersReady"}:
.: {}
f:lastProbeTime: {}
f:lastTransitionTime: {}
f:status: {}
f:type: {}
k:{"type":"Initialized"}:
.: {}
f:lastProbeTime: {}
f:lastTransitionTime: {}
f:status: {}
f:type: {}
k:{"type":"Ready"}:
.: {}
f:lastProbeTime: {}
f:lastTransitionTime: {}
f:status: {}
f:type: {}
f:containerStatuses: {}
f:hostIP: {}
f:phase: {}
f:podIP: {}
f:podIPs:
.: {}
k:{"ip":"10.42.182.223"}:
.: {}
f:ip: {}
f:startTime: {}
manager: kubelet
operation: Update
subresource: status
time: "2022-10-13T18:37:43Z"
name: pihole-6cfbcb6dbc-sncw2
namespace: default
ownerReferences:
- apiVersion: apps/v1
blockOwnerDeletion: true
controller: true
kind: ReplicaSet
name: pihole-6cfbcb6dbc
uid: 83396e58-cec7-4f53-bcd4-2b09906ecf2a
resourceVersion: "17132088"
uid: b47c12a5-ca8d-40b7-b304-01bcd0d5dbe0
spec:
affinity: {}
containers:
- env:
- name: TZ
value: America/Chicago
- name: DNS1
value: 1.1.1.1
- name: DNS2
value: 9.9.9.9
- name: ServerIP
value: 10.150.20.40
image: pihole/pihole
imagePullPolicy: Always
name: container-0
ports:
- containerPort: 53
name: dns-tcp
protocol: TCP
- containerPort: 53
name: dns-udp
protocol: UDP
- containerPort: 8001
name: pihole-http
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/pihole
name: pihole-etc
- mountPath: /etc-dnsmasq.d/
name: pihole-dnsmasq
dnsConfig:
nameservers:
- 127.0.0.1
- 9.9.9.9
dnsPolicy: ClusterFirst
enableServiceLinks: true
nodeName: kubernetes204.pandorica.us
preemptionPolicy: PreemptLowerPriority
priority: 0
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: default
serviceAccountName: default
terminationGracePeriodSeconds: 30
tolerations:
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
tolerationSeconds: 300
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
tolerationSeconds: 300
volumes:
- hostPath:
path: /var/lib/rancher/pihole/etc-pihole
type: DirectoryOrCreate
name: pihole-etc
- hostPath:
path: /var/lib/rancher/pihole/etc-dnsmasq.d/
type: DirectoryOrCreate
name: pihole-dnsmasq
status:
conditions:
- lastProbeTime: null
lastTransitionTime: "2022-10-13T18:37:40Z"
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: "2022-10-13T18:37:43Z"
status: "True"
type: Ready
- lastProbeTime: null
lastTransitionTime: "2022-10-13T18:37:43Z"
status: "True"
type: ContainersReady
- lastProbeTime: null
lastTransitionTime: "2022-10-13T18:37:40Z"
status: "True"
type: PodScheduled
containerStatuses:
- containerID: containerd://70d6cad89ee03fa4b70cdc77c7e22617b3ae15bf4b2640ad3607320998978df1
image: docker.io/pihole/pihole:latest
imageID: docker.io/pihole/pihole@sha256:9da1360c747715c41cf327580d2cc064f04776674afe317abd99cac70cd65e82
lastState: {}
name: container-0
ready: true
restartCount: 0
started: true
state:
running:
startedAt: "2022-10-13T18:37:43Z"
hostIP: 10.150.20.183
phase: Running
podIP: 10.42.182.223
podIPs:
- ip: 10.42.182.223
qosClass: BestEffort
startTime: "2022-10-13T18:37:40Z"