pihole w/o resources. boostrapping needs ram
This commit is contained in:
@@ -1,9 +1,19 @@
|
|||||||
---
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: pihole-webpassword
|
||||||
|
namespace: default
|
||||||
|
type: Opaque
|
||||||
|
data:
|
||||||
|
password: YWRtaW4yMDIw
|
||||||
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: pihole
|
app: pihole
|
||||||
|
name: pihole
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
revisionHistoryLimit: 10
|
revisionHistoryLimit: 10
|
||||||
@@ -37,7 +47,7 @@ spec:
|
|||||||
- name: DNS2
|
- name: DNS2
|
||||||
value: 208.67.220.220
|
value: 208.67.220.220
|
||||||
image: pihole/pihole:v5.1.1
|
image: pihole/pihole:v5.1.1
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: Always
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
failureThreshold: 10
|
failureThreshold: 10
|
||||||
httpGet:
|
httpGet:
|
||||||
@@ -75,13 +85,13 @@ spec:
|
|||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
resources:
|
resources: {}
|
||||||
limits:
|
# limits:
|
||||||
cpu: 100m
|
# cpu: 100m
|
||||||
memory: 256Mi
|
# memory: 256Mi
|
||||||
requests:
|
# requests:
|
||||||
cpu: 50m
|
# cpu: 50m
|
||||||
memory: 100Mi
|
# memory: 100Mi
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: false
|
privileged: false
|
||||||
terminationMessagePath: /dev/termination-log
|
terminationMessagePath: /dev/termination-log
|
||||||
@@ -95,10 +105,10 @@ spec:
|
|||||||
- mountPath: /etc/addn-hosts
|
- mountPath: /etc/addn-hosts
|
||||||
name: custom-dnsmasq
|
name: custom-dnsmasq
|
||||||
subPath: addn-hosts
|
subPath: addn-hosts
|
||||||
#dnsConfig:
|
dnsConfig:
|
||||||
# nameservers:
|
nameservers:
|
||||||
# - 127.0.0.1
|
- 127.0.0.1
|
||||||
# - 192.168.10.1
|
- 192.168.10.1
|
||||||
dnsPolicy: None
|
dnsPolicy: None
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
schedulerName: default-scheduler
|
schedulerName: default-scheduler
|
||||||
@@ -134,8 +144,8 @@ apiVersion: v1
|
|||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: pihole-data
|
name: pihole-data
|
||||||
annotations:
|
#annotations:
|
||||||
volume.beta.kubernetes.io/storage-class: "managed-nfs-storage"
|
# volume.beta.kubernetes.io/storage-class: "managed-nfs-storage"
|
||||||
spec:
|
spec:
|
||||||
storageClassName: csi-s3-slow
|
storageClassName: csi-s3-slow
|
||||||
accessModes:
|
accessModes:
|
||||||
@@ -210,9 +220,3 @@ spec:
|
|||||||
app: pihole
|
app: pihole
|
||||||
sessionAffinity: None
|
sessionAffinity: None
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
---
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user