sshAccess allowed from everywhere even if restricted in cluster yaml on GCE
1. What kops version are you running? The command kops version, will display
this information.
1.10.0
2. What Kubernetes version are you running? kubectl version will print the
version if a cluster is running or provide the Kubernetes version specified as
a kops flag.
Major:"1", Minor:"9", GitVersion:"v1.9.10"
3. What cloud provider are you using? GCE
4. What commands did you run? What is the simplest way to reproduce this issue? kops create cluster -f cluster.yaml
5. What happened after the commands executed? sshAccess allowed from everywhere even if restricted in cluster yaml on GCE
6. What did you expect to happen? sshAccess should be restricted to IP or ranges provided in cluster yaml
7. Please provide your cluster manifest. Execute
kops get --name my.example.com -o yaml to display your cluster manifest.
You may want to remove your cluster name and other sensitive information.
`apiVersion: kops/v1alpha2 kind: Cluster metadata: name: foo.europe-west1.foobar.com spec: api: loadBalancer: type: Public authorization: rbac: {} channel: stable cloudProvider: gce configBase: gs://foobar-clusters/foo.europe-west1.foobar.com etcdClusters:
- etcdMembers:
- instanceGroup: master-europe-west1-b name: b
- instanceGroup: master-europe-west1-c name: c
- instanceGroup: master-europe-west1-d name: d name: main
- etcdMembers:
- instanceGroup: master-europe-west1-b name: b
- instanceGroup: master-europe-west1-c name: c
- instanceGroup: master-europe-west1-d name: d name: events iam: allowContainerRegistry: true legacy: false kubeAPIServer: anonymousAuth: false oidcClientID: kubernetes oidcGroupsClaim: groups oidcIssuerURL: https://foo.europe-west1.foobar.com/dex oidcUsernameClaim: email kubelet: anonymousAuth: false kubernetesApiAccess:
- 5.5.5.5/32
- 10.0.0.0/8 kubernetesVersion: 1.9.10 masterPublicName: api.foo.europe-west1.foobar.com networking: kubenet: {} nonMasqueradeCIDR: 100.64.0.0/10 project: foofoo-209889 sshAccess:
- 5.5.5.5/32
- 10.0.0.0/8 subnets:
- name: europe-west1 region: europe-west1 type: Private
- name: utility-europe-west1 type: Utility topology: dns: type: Public masters: private nodes: private`
additional instance group file:
`apiVersion: kops/v1alpha2 kind: InstanceGroup metadata: labels: kops.k8s.io/cluster: foo.europe-west1.foobar.com name: master-europe-west1-b spec: image: cos-cloud/cos-stable-65-10323-99-0 machineType: n1-standard-2 maxSize: 1 minSize: 1 nodeLabels: kops.k8s.io/instancegroup: master-europe-west1-b role: Master subnets:
- europe-west1 zones:
- europe-west1-b
apiVersion: kops/v1alpha2 kind: InstanceGroup metadata: labels: kops.k8s.io/cluster: foo.europe-west1.foobar.com name: master-europe-west1-c spec: image: cos-cloud/cos-stable-65-10323-99-0 machineType: n1-standard-2 maxSize: 1 minSize: 1 nodeLabels: kops.k8s.io/instancegroup: master-europe-west1-c role: Master subnets:
- europe-west1 zones:
- europe-west1-c
apiVersion: kops/v1alpha2 kind: InstanceGroup metadata: labels: kops.k8s.io/cluster: foo.europe-west1.foobar.com name: master-europe-west1-d spec: image: cos-cloud/cos-stable-65-10323-99-0 machineType: n1-standard-2 maxSize: 1 minSize: 1 nodeLabels: kops.k8s.io/instancegroup: master-europe-west1-d role: Master subnets:
- europe-west1 zones:
- europe-west1-d
apiVersion: kops/v1alpha2 kind: InstanceGroup metadata: labels: kops.k8s.io/cluster: foo.europe-west1.foobar.com name: nodes spec: image: cos-cloud/cos-stable-65-10323-99-0 machineType: n1-standard-16 maxSize: 3 minSize: 3 nodeLabels: kops.k8s.io/instancegroup: nodes role: Node subnets:
- europe-west1 zones:
- europe-west1-b
- europe-west1-c
- europe-west1-d `
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle rotten
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /close
@fejta-bot: Closing this issue.
In response to this:
Rotten issues close after 30d of inactivity. Reopen the issue with
/reopen. Mark the issue as fresh with/remove-lifecycle rotten.Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.