Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Commit

Permalink
Added ability to disable ssh access (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
goruha authored Aug 8, 2019
1 parent aac2d49 commit 5a6b9d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/kops/kops-private-topology.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ spec:
calico: {}
nonMasqueradeCIDR: {{ getenv "KOPS_NON_MASQUERADE_CIDR" "100.64.0.0/10" }}
sshAccess:
- 0.0.0.0/0
{{- if bool (getenv "KOPS_SSH_ACCESS_ENABLED" "true") }}
- {{ getenv "KOPS_SSH_ACCESS_CIDR" "0.0.0.0/0" }}
{{- end }}
subnets:
{{- range $index, $value := (getenv "KOPS_AVAILABILITY_ZONES" | strings.Split ",") }}
{{- $privateSubnets := getenv "KOPS_PRIVATE_SUBNETS" | required "KOPS_PRIVATE_SUBNETS must be defined" }}
Expand Down

0 comments on commit 5a6b9d9

Please sign in to comment.