-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add private cluster with socks-proxy in addition to existing public c…
…luster (#7751) * Add private cluster with socks-proxy in addition to existing public cluster. * Review fdbk
- Loading branch information
Showing
74 changed files
with
332 additions
and
185 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
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,32 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
source "$SCRIPT_DIR/../utils.sh" | ||
|
||
# By convention, the name of the folder enclosing this script is the cluster name | ||
CLUSTER_NAME=$(basename $(dirname "$0")) | ||
|
||
check_context $CLUSTER_NAME | ||
|
||
install_datadog_agent | ||
|
||
echo "-----------------------------------" | ||
echo "Applying configmaps" | ||
echo "-----------------------------------" | ||
|
||
kubectl apply -f "$(dirname "$0")/configmaps/socks-proxy-configmap.yaml" | ||
|
||
echo "-----------------------------------" | ||
echo "Applying deployments" | ||
echo "-----------------------------------" | ||
|
||
apply_deployment socks-proxy-deployment | ||
|
||
echo "-----------------------------------" | ||
echo "Applying network policies" | ||
echo "-----------------------------------" | ||
|
||
# kubectl apply -f "$(dirname "$0")/network-policies/allow-same-namespace.yaml" | ||
# kubectl apply -f "$(dirname "$0")/network-policies/default-deny-ingress.yaml" |
File renamed without changes.
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,53 @@ | ||
datadog: | ||
logs: | ||
enabled: true | ||
containerCollectAll: false | ||
containerExcludeLogs: | ||
- "name:datadog-agent" | ||
site: datadoghq.eu | ||
clusterName: dust-kube-private | ||
|
||
apm: | ||
socketEnabled: false | ||
portEnabled: true | ||
|
||
dogstatsd: | ||
useDogStatsDSocketVolume: false | ||
port: 8125 | ||
useHostPort: true | ||
nonLocalTraffic: true | ||
|
||
ignoreAutoConfig: | ||
- cilium | ||
- nginx | ||
- redis | ||
|
||
kubeStateMetricsCore: | ||
enabled: true | ||
|
||
kubeStateMetricsEnabled: false | ||
|
||
clusterAgent: | ||
enabled: true | ||
resources: | ||
requests: | ||
cpu: 200m | ||
memory: 512Mi | ||
replicas: 2 | ||
createPodDisruptionBudget: true | ||
|
||
agents: | ||
priorityClassCreate: true | ||
containers: | ||
agent: | ||
resources: | ||
requests: | ||
cpu: 200m | ||
memory: 512Mi | ||
limits: | ||
cpu: 200m | ||
memory: 512Mi | ||
|
||
providers: | ||
gke: | ||
autopilot: true |
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
11 changes: 11 additions & 0 deletions
11
k8s/dust-kube-private/network-policies/allow-same-namespace.yaml
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 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: NetworkPolicy | ||
metadata: | ||
name: allow-same-namespace | ||
spec: | ||
podSelector: {} | ||
ingress: | ||
- from: | ||
- podSelector: {} | ||
policyTypes: | ||
- Ingress |
8 changes: 8 additions & 0 deletions
8
k8s/dust-kube-private/network-policies/default-deny-ingress.yaml
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,8 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: NetworkPolicy | ||
metadata: | ||
name: default-deny-ingress | ||
spec: | ||
podSelector: {} | ||
policyTypes: | ||
- Ingress |
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 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: socks-proxy-service | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- port: 1080 | ||
targetPort: 1080 | ||
selector: | ||
app: socks-proxy | ||
--- | ||
apiVersion: net.gke.io/v1 | ||
kind: ServiceExport | ||
metadata: | ||
name: socks-proxy-service |
Oops, something went wrong.