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