1
1
mirror of https://github.com/dnscrypt/dnscrypt-server-docker synced 2024-11-22 23:51:59 +01:00

Add UDP support to Kubernetes configs

This commit is contained in:
Josh Ellithorpe 2017-07-16 15:37:40 -07:00
parent ce1985fe2b
commit 89d69ab219
No known key found for this signature in database
GPG Key ID: E49B7E0000228DDD
2 changed files with 21 additions and 2 deletions

@ -132,7 +132,9 @@ a persistent disk named `dnscrypt-keys` on GCE. You will need to adjust the volu
definition on other platforms. Once that is setup, you can have a dnscrypt server up
in minutes.
* Create a static IP on GCE. This will be used for the LoadBalancer.
* Edit `kube/dnscrypt-init-job.yml` and change `example.com` to your desired hostname.
* Edit `kube/dnscrypt-srv.yml` and change `loadBalancerIP` to your static IP.
* Run `kubectl create -f kube/dnscrypt-init-job.yml` to setup your keys.
* Run `kubectl create -f kube/dnscrypt-deployment.yml` to deploy the dnscrypt server.
* Run `kubectl create -f kube/dnscrypt-srv.yml` to expose your server to the world.

@ -1,12 +1,29 @@
apiVersion: v1
kind: Service
metadata:
name: dnscrypt
name: dnscrypt-tcp
namespace: default
spec:
ports:
- port: 443
- protocol: TCP
port: 443
targetPort: 443
selector:
service: dnscrypt
type: LoadBalancer
loadBalancerIP: 0.0.0.0
---
apiVersion: v1
kind: Service
metadata:
name: dnscrypt-udp
namespace: default
spec:
ports:
- protocol: UDP
port: 443
targetPort: 443
selector:
service: dnscrypt
type: LoadBalancer
loadBalancerIP: 0.0.0.0