-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added more documentation, GKE service files, stubby configs.
- Loading branch information
Showing
9 changed files
with
249 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Google Container Engine | ||
|
||
## Description | ||
These are Google Container Engine (GKE) config files for starting up the dprive-nginx-bind containers. | ||
|
||
## Usage / configuration | ||
You will need to edit (at a minimum!) the `image` attribute in `dprive-nginx-bind-deployment.yaml`, and the `loadBalancerIP` attribute in `dprive-nginx-bind-service.yaml` (if you have not reserved a static IP, you can simply remote this attribute and an ephemeral one will be assigned. | ||
|
||
## Example usage: | ||
Spinning up deploymment and service: | ||
|
||
``` | ||
$ kubectl create -f dprive-nginx-bind-deployment.yaml | ||
$ kubectl create -f dprive-nginx-bind-service.yaml | ||
``` | ||
|
||
Checking: | ||
|
||
``` | ||
$ kubectl get deployment dprive-nginx-bind | ||
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE | ||
dprive-nginx-bind 1 1 1 1 3d | ||
$ kubectl get service dprive-nginx-bind | ||
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE | ||
dprive-nginx-bind 10.3.242.209 104.196.153.172 853/TCP,443/TCP 8m | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: dprive-nginx-bind | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
run: dprive-nginx-bind | ||
spec: | ||
containers: | ||
- image: us.gcr.io/dprive-nginx-bind:latest | ||
imagePullPolicy: Always | ||
name: dprive-nginx-bind | ||
terminationMessagePath: /dev/termination-log | ||
ports: | ||
- containerPort: 853 | ||
name: domain-s | ||
- containerPort: 443 | ||
name: https | ||
dnsPolicy: ClusterFirst | ||
restartPolicy: Always | ||
securityContext: {} | ||
terminationGracePeriodSeconds: 30 | ||
status: | ||
availableReplicas: 1 | ||
observedGeneration: 2 | ||
replicas: 1 | ||
updatedReplicas: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
run: dprive-nginx-bind | ||
name: dprive-nginx-bind | ||
spec: | ||
type: LoadBalancer | ||
loadBalancerIP: 104.196.153.172 | ||
ports: | ||
- name: domain-s | ||
protocol: TCP | ||
port: 853 | ||
targetPort: 853 | ||
- name: https | ||
protocol: TCP | ||
port: 443 | ||
targetPort: 443 | ||
selector: | ||
run: dprive-nginx-bind | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Stubby configs | ||
|
||
## Description | ||
These are example stubby configs to talk to my deployments. | ||
|
||
``` | ||
stubby-aws.conf # Amazon AWS container | ||
stubby-gce-443.conf # Google Container on port 443 | ||
stubby-gce.conf # Google Container Engine | ||
stubby-snozzages.conf # Docker instance. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ resolution_type: GETDNS_RESOLUTION_STUB | ||
, dns_transport_list: [ GETDNS_TRANSPORT_TLS ] | ||
, upstream_recursive_servers: | ||
[ { address_data: 34.195.235.255 | ||
, tls_auth_name: "*.snozzages.com" | ||
, tls_pubkey_pinset: | ||
[ { digest: "sha256" | ||
, value: 0x35675a81f9afa826883465f9320201461d324dafde1aa127fb8a00a526f1cae9 | ||
} ] | ||
} ] | ||
, tls_authentication: GETDNS_AUTHENTICATION_REQUIRED | ||
, tls_query_padding_blocksize: 256 | ||
, edns_client_subnet_private : 1 | ||
, listen_addresses: [ 127.0.0.1, 0::1 ] | ||
, idle_timeout: 10000 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ resolution_type: GETDNS_RESOLUTION_STUB | ||
, dns_transport_list: [ GETDNS_TRANSPORT_TLS ] | ||
, upstream_recursive_servers: | ||
[ { address_data: 104.196.153.172 | ||
, tls_port: 443 | ||
, tls_auth_name: "*.snozzages.com" | ||
, tls_pubkey_pinset: | ||
[ { digest: "sha256" | ||
, value: 0x35675a81f9afa826883465f9320201461d324dafde1aa127fb8a00a526f1cae9 | ||
} ] | ||
} ] | ||
, tls_authentication: GETDNS_AUTHENTICATION_REQUIRED | ||
, tls_query_padding_blocksize: 256 | ||
, edns_client_subnet_private : 1 | ||
, listen_addresses: [ 127.0.0.1, 0::1 ] | ||
, idle_timeout: 10000 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ resolution_type: GETDNS_RESOLUTION_STUB | ||
, dns_transport_list: [ GETDNS_TRANSPORT_TLS ] | ||
, upstream_recursive_servers: | ||
[ { address_data: 104.196.153.172 | ||
, tls_auth_name: "*.snozzages.com" | ||
, tls_pubkey_pinset: | ||
[ { digest: "sha256" | ||
, value: 0x35675a81f9afa826883465f9320201461d324dafde1aa127fb8a00a526f1cae9 | ||
} ] | ||
} ] | ||
, tls_authentication: GETDNS_AUTHENTICATION_REQUIRED | ||
, tls_query_padding_blocksize: 256 | ||
, edns_client_subnet_private : 1 | ||
, listen_addresses: [ 127.0.0.1, 0::1 ] | ||
, idle_timeout: 10000 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ resolution_type: GETDNS_RESOLUTION_STUB | ||
, dns_transport_list: [ GETDNS_TRANSPORT_TLS ] | ||
, upstream_recursive_servers: | ||
[ { address_data: 204.194.23.68 | ||
, tls_auth_name: "*.snozzages.com" | ||
, tls_pubkey_pinset: | ||
[ { digest: "sha256" | ||
, value: 0x35675a81f9afa826883465f9320201461d324dafde1aa127fb8a00a526f1cae9 | ||
} ] | ||
} ] | ||
, tls_authentication: GETDNS_AUTHENTICATION_REQUIRED | ||
, tls_query_padding_blocksize: 256 | ||
, edns_client_subnet_private : 1 | ||
, listen_addresses: [ 127.0.0.1, 0::1 ] | ||
, idle_timeout: 10000 | ||
} |