Compare commits
1 Commits
caf4cae75b
...
a20d04e03c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a20d04e03c |
@@ -9,7 +9,7 @@ jobs:
|
|||||||
renovate:
|
renovate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: renovate/renovate:42.26.11
|
image: renovate/renovate:42.26.2
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: keepalived-config
|
|
||||||
namespace: tools
|
|
||||||
data:
|
|
||||||
keepalived.conf: |
|
|
||||||
vrrp_instance PIHOLE_VIP {
|
|
||||||
state BACKUP
|
|
||||||
interface eth0
|
|
||||||
virtual_router_id 212
|
|
||||||
priority 100
|
|
||||||
advert_int 1
|
|
||||||
|
|
||||||
virtual_ipaddress {
|
|
||||||
192.168.1.212/24
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,81 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: DaemonSet
|
|
||||||
metadata:
|
|
||||||
name: pihole-backup
|
|
||||||
namespace: tools
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: pihole
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: pihole
|
|
||||||
spec:
|
|
||||||
hostNetwork: true
|
|
||||||
dnsPolicy: ClusterFirstWithHostNet
|
|
||||||
|
|
||||||
initContainers:
|
|
||||||
- name: init-keepalived
|
|
||||||
image: osixia/keepalived:2.0.20
|
|
||||||
command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
- |
|
|
||||||
cp -r /container/service/keepalived/assets/* /etc/keepalived/
|
|
||||||
cp /config/keepalived.conf /etc/keepalived/keepalived.conf
|
|
||||||
volumeMounts:
|
|
||||||
- name: keepalived-config
|
|
||||||
mountPath: /config
|
|
||||||
- name: keepalived-runtime
|
|
||||||
mountPath: /etc/keepalived
|
|
||||||
|
|
||||||
containers:
|
|
||||||
- name: pihole
|
|
||||||
image: pihole/pihole:latest
|
|
||||||
securityContext:
|
|
||||||
capabilities:
|
|
||||||
add: ["NET_ADMIN"]
|
|
||||||
env:
|
|
||||||
- name: TZ
|
|
||||||
value: "Asia/Kolkata"
|
|
||||||
- name: FTLCONF_webserver_api_password
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: pihole-webpassword
|
|
||||||
key: password
|
|
||||||
ports:
|
|
||||||
- containerPort: 53
|
|
||||||
protocol: UDP
|
|
||||||
- containerPort: 53
|
|
||||||
protocol: TCP
|
|
||||||
- containerPort: 67
|
|
||||||
protocol: UDP
|
|
||||||
- containerPort: 80
|
|
||||||
protocol: TCP
|
|
||||||
volumeMounts:
|
|
||||||
- name: pihole-data
|
|
||||||
mountPath: /etc/pihole
|
|
||||||
|
|
||||||
- name: keepalived
|
|
||||||
image: osixia/keepalived:2.0.20
|
|
||||||
securityContext:
|
|
||||||
capabilities:
|
|
||||||
add: ["NET_ADMIN", "NET_BROADCAST", "NET_RAW"]
|
|
||||||
|
|
||||||
volumeMounts:
|
|
||||||
- name: keepalived-runtime
|
|
||||||
mountPath: /container/service/keepalived/assets
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: keepalived-config
|
|
||||||
configMap:
|
|
||||||
name: keepalived-config
|
|
||||||
|
|
||||||
- name: keepalived-runtime
|
|
||||||
emptyDir: {}
|
|
||||||
|
|
||||||
- name: pihole-data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: pihole-longhorn
|
|
||||||
@@ -6,7 +6,7 @@ metadata:
|
|||||||
namespace: tools
|
namespace: tools
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteMany
|
- ReadWriteOnce
|
||||||
volumeMode: Filesystem
|
volumeMode: Filesystem
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
16
disabled/pihole/pihole-svc.yml
Normal file
16
disabled/pihole/pihole-svc.yml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: pihole-tcp-service
|
||||||
|
namespace: tools
|
||||||
|
spec:
|
||||||
|
type: LoadBalancer
|
||||||
|
loadBalancerIP: 192.168.1.229
|
||||||
|
selector:
|
||||||
|
app: pihole
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
name: web
|
||||||
49
disabled/pihole/pihole.yml
Normal file
49
disabled/pihole/pihole.yml
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: pihole
|
||||||
|
namespace: tools
|
||||||
|
spec:
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: pihole
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: pihole
|
||||||
|
spec:
|
||||||
|
hostNetwork: true
|
||||||
|
affinity:
|
||||||
|
nodeAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
nodeSelectorTerms:
|
||||||
|
- matchExpressions:
|
||||||
|
- key: kubernetes.io/hostname
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- kube-02
|
||||||
|
- kube-03
|
||||||
|
- kube-04
|
||||||
|
- kube-05
|
||||||
|
containers:
|
||||||
|
- name: pihole
|
||||||
|
image: pihole/pihole@sha256:e28e239f55e648a9d32c8f065650acfe987ddebf1cd5f64f1c071e8716156ceb
|
||||||
|
securityContext:
|
||||||
|
capabilities:
|
||||||
|
add:
|
||||||
|
- NET_ADMIN
|
||||||
|
env:
|
||||||
|
- name: TZ
|
||||||
|
value: "Asia/Kolkata"
|
||||||
|
- name: FTLCONF_dns_listeningMode
|
||||||
|
value: "all"
|
||||||
|
volumeMounts:
|
||||||
|
- name: pihole-data
|
||||||
|
mountPath: /etc/pihole
|
||||||
|
volumes:
|
||||||
|
- name: pihole-data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: pihole-longhorn
|
||||||
Reference in New Issue
Block a user