Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
erebe committed Jun 5, 2024
1 parent bb5a338 commit 0872385
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 25 deletions.
26 changes: 16 additions & 10 deletions services/email/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ spec:
- key: "kubernetes.io/hostname"
operator: "Equal"
value: "mail"
securityContext:
fsGroup: 65534
containers:
- name: mail
image: ghcr.io/erebe/email:latest
Expand All @@ -40,12 +42,6 @@ spec:
secretKeyRef:
name: dovecot-users-password
key: GANDI_RELAI_URL
# livenessProbe:
# tcpSocket:
# port: 25
# initialDelaySeconds: 10
# failureThreshold: 3
# periodSeconds: 30
volumeMounts:
- name: email-tls
mountPath: /etc/dovecot/private/
Expand All @@ -71,10 +67,20 @@ spec:
- key: fetchmailrc
path: fetchmailrc
- name: mail-data
hostPath:
path: /opt/mail/data
type: Directory

persistentVolumeClaim:
claimName: mail-pv-claim
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mail-pv-claim
spec:
storageClassName: nfs-nvme
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
---
apiVersion: cert-manager.io/v1
kind: Certificate
Expand Down
34 changes: 23 additions & 11 deletions services/pihole/pihole.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ spec:
nameservers:
- 127.0.0.1
- 1.1.1.1
securityContext:
fsGroup: 65534
fsGroupChangePolicy: "OnRootMismatch"
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
Expand Down Expand Up @@ -59,9 +62,11 @@ spec:
securityContext:
privileged: true
volumeMounts:
- name: pihole-etc-volume
mountPath: "/etc/pihole"
- name: pihole-dnsmasq-volume
- name: pihole-data
subPath: etc
mountPath: /etc/pihole
- name: pihole-data
subPath: dnsmasq
mountPath: "/etc/dnsmasq.d"
tolerations:
- key: "kubernetes.io/hostname"
Expand All @@ -74,14 +79,21 @@ spec:
- key: "node.cilium.io/agent-not-ready"
operator: "Exists"
volumes:
- name: pihole-etc-volume
hostPath:
path: /opt/pihole/etc
type: Directory
- name: pihole-dnsmasq-volume
hostPath:
path: /opt/pihole/dnsmasq
type: Directory
- name: pihole-data
persistentVolumeClaim:
claimName: pihole-pv-claim
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pihole-pv-claim
spec:
storageClassName: nfs-nvme
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
---
apiVersion: v1
kind: Service
Expand Down
21 changes: 17 additions & 4 deletions services/vaultwarden/vaultwarden.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ spec:
- key: "kubernetes.io/hostname"
operator: "Equal"
value: "minio"
securityContext:
fsGroup: 65534
fsGroupChangePolicy: "OnRootMismatch"
containers:
- name: vaultwarden
image: docker.io/vaultwarden/server:1.27.0
Expand Down Expand Up @@ -54,10 +57,20 @@ spec:
mountPath: /data
volumes:
- name: data
hostPath:
path: /opt/vaultwarden/
type: Directory

persistentVolumeClaim:
claimName: vaultwarden-pv-claim
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: vaultwarden-pv-claim
spec:
storageClassName: nfs-nvme
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
---
apiVersion: v1
kind: Service
Expand Down

0 comments on commit 0872385

Please sign in to comment.