mirror of https://github.com/kubernetes/kops.git
Update tests
This commit is contained in:
parent
a82f548ff8
commit
4cd8dbae3f
|
|
@ -22,7 +22,7 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
api:
|
api:
|
||||||
loadBalancer:
|
loadBalancer:
|
||||||
SecurityGroupOverride: sg-abcd1234
|
securityGroupOverride: sg-abcd1234
|
||||||
|
|
||||||
.
|
.
|
||||||
.
|
.
|
||||||
|
|
@ -36,14 +36,14 @@ metadata:
|
||||||
kops.k8s.io/cluster: mycluster.example.com
|
kops.k8s.io/cluster: mycluster.example.com
|
||||||
name: master-us-test-1a
|
name: master-us-test-1a
|
||||||
spec:
|
spec:
|
||||||
SecurityGroupOverride: sg-1234dcba
|
securityGroupOverride: sg-1234dcba
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Now run a cluster update to create the new launch configuration, using [lifecycle overrides](./cli/kops_update_cluster.md#options) to prevent Security Group resources from being created:
|
Now run a cluster update to create the new launch configuration, using [lifecycle overrides](./cli/kops_update_cluster.md#options) to prevent Security Group resources from being created:
|
||||||
|
|
||||||
```
|
```
|
||||||
kops update cluster ${CLUSTER_NAME} --yes --lifecycle-overrides IAMRole=SecurityGroup=ExistsAndWarnIfChanges,SecurityGroupRule=ExistsAndWarnIfChanges
|
kops update cluster ${CLUSTER_NAME} --yes --lifecycle-overrides SecurityGroup=ExistsAndWarnIfChanges,SecurityGroupRule=ExistsAndWarnIfChanges
|
||||||
```
|
```
|
||||||
|
|
||||||
*Everytime `kops update cluster` is ran, it must include the above `--lifecycle-overrides`.*
|
*Everytime `kops update cluster` is ran, it must include the above `--lifecycle-overrides`.*
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
api:
|
api:
|
||||||
loadBalancer:
|
loadBalancer:
|
||||||
SecurityGroupOverride: sg-abcd1234
|
securityGroupOverride: sg-abcd1234
|
||||||
kubernetesApiAccess:
|
kubernetesApiAccess:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
channel: stable
|
channel: stable
|
||||||
|
|
@ -72,7 +72,7 @@ spec:
|
||||||
role: Master
|
role: Master
|
||||||
subnets:
|
subnets:
|
||||||
- us-test-1a
|
- us-test-1a
|
||||||
SecurityGroupOverride: sg-1234dcba
|
securityGroupOverride: sg-1234dcba
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
@ -91,7 +91,7 @@ spec:
|
||||||
role: Master
|
role: Master
|
||||||
subnets:
|
subnets:
|
||||||
- us-test-1b
|
- us-test-1b
|
||||||
SecurityGroupOverride: sg-1234dcba
|
securityGroupOverride: sg-1234dcba
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
@ -110,7 +110,7 @@ spec:
|
||||||
role: Master
|
role: Master
|
||||||
subnets:
|
subnets:
|
||||||
- us-test-1c
|
- us-test-1c
|
||||||
SecurityGroupOverride: sg-1234dcba
|
securityGroupOverride: sg-1234dcba
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
@ -130,5 +130,5 @@ spec:
|
||||||
role: Node
|
role: Node
|
||||||
subnets:
|
subnets:
|
||||||
- us-test-1a
|
- us-test-1a
|
||||||
SecurityGroupOverride: sg-1234abcd
|
securityGroupOverride: sg-1234abcd
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue