2021-07-31 14:27:45 +02:00
|
|
|
apiVersion: apps/v1
|
2017-07-16 11:29:46 +02:00
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
namespace: default
|
|
|
|
labels:
|
|
|
|
service: dnscrypt
|
|
|
|
name: dnscrypt
|
|
|
|
spec:
|
|
|
|
strategy:
|
|
|
|
type: Recreate
|
|
|
|
replicas: 1
|
2021-07-31 14:27:45 +02:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
service: dnscrypt
|
2017-07-16 11:29:46 +02:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
service: dnscrypt
|
|
|
|
spec:
|
|
|
|
containers:
|
2021-07-31 14:27:45 +02:00
|
|
|
- image: zquestz/dnscrypt-server:latest
|
|
|
|
imagePullPolicy: Always
|
2017-07-16 11:29:46 +02:00
|
|
|
name: dnscrypt
|
2021-07-31 14:27:45 +02:00
|
|
|
ports:
|
|
|
|
- containerPort: 5443
|
|
|
|
protocol: UDP
|
|
|
|
- containerPort: 5443
|
|
|
|
protocol: TCP
|
2017-07-16 11:29:46 +02:00
|
|
|
volumeMounts:
|
|
|
|
- name: dnscrypt-keys
|
2019-09-22 15:38:22 +02:00
|
|
|
mountPath: /opt/encrypted-dns/etc/keys
|
2017-07-16 11:29:46 +02:00
|
|
|
command: ["/entrypoint.sh", "start"]
|
|
|
|
resources:
|
|
|
|
requests:
|
2021-07-31 14:27:45 +02:00
|
|
|
memory: "64Mi"
|
2017-07-16 11:29:46 +02:00
|
|
|
restartPolicy: Always
|
|
|
|
volumes:
|
|
|
|
- name: dnscrypt-keys
|
|
|
|
gcePersistentDisk:
|
|
|
|
pdName: dnscrypt-keys
|
|
|
|
fsType: ext4
|