mirror of
https://github.com/dnscrypt/dnscrypt-server-docker
synced 2024-11-22 19:42:03 +01:00
Merge pull request #40 from zquestz/kubernetes
Add UDP support to Kubernetes configs
This commit is contained in:
commit
9916f972b8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user