mirror of https://github.com/kubernetes/kops.git
Merge pull request #4184 from chrislovecnm/rbac-default
Switching the default for kops to create a cluster with RBAC enabled.
This commit is contained in:
commit
b02a73fa2c
|
|
@ -156,7 +156,7 @@ func (o *CreateClusterOptions) InitDefaults() {
|
|||
// Default to open API & SSH access
|
||||
o.AdminAccess = []string{"0.0.0.0/0"}
|
||||
|
||||
o.Authorization = AuthorizationFlagAlwaysAllow
|
||||
o.Authorization = AuthorizationFlagRBAC
|
||||
}
|
||||
|
||||
var (
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ kops create cluster
|
|||
--admin-access stringSlice Restrict API access to this CIDR. If not set, access will not be restricted by IP. (default [0.0.0.0/0])
|
||||
--api-loadbalancer-type string Sets the API loadbalancer type to either 'public' or 'internal'
|
||||
--associate-public-ip Specify --associate-public-ip=[true|false] to enable/disable association of public IP for master ASG and nodes. Default is 'true'.
|
||||
--authorization string Authorization mode to use: AlwaysAllow or RBAC (default "AlwaysAllow")
|
||||
--authorization string Authorization mode to use: AlwaysAllow or RBAC (default "RBAC")
|
||||
--bastion Pass the --bastion flag to enable a bastion instance group. Only applies to private topology.
|
||||
--channel string Channel for default versions and configuration to use (default "stable")
|
||||
--cloud string Cloud provider to use - gce, aws, vsphere
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ spec:
|
|||
api:
|
||||
dns: {}
|
||||
authorization:
|
||||
alwaysAllow: {}
|
||||
rbac: {}
|
||||
channel: stable
|
||||
cloudProvider: aws
|
||||
configBase: memfs://tests/complex.example.com
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ spec:
|
|||
api:
|
||||
dns: {}
|
||||
authorization:
|
||||
alwaysAllow: {}
|
||||
rbac: {}
|
||||
channel: stable
|
||||
cloudProvider: aws
|
||||
configBase: memfs://tests/ha.example.com
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ spec:
|
|||
api:
|
||||
dns: {}
|
||||
authorization:
|
||||
alwaysAllow: {}
|
||||
rbac: {}
|
||||
channel: stable
|
||||
cloudProvider: aws
|
||||
configBase: memfs://tests/ha.example.com
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ spec:
|
|||
api:
|
||||
dns: {}
|
||||
authorization:
|
||||
alwaysAllow: {}
|
||||
rbac: {}
|
||||
channel: stable
|
||||
cloudProvider: aws
|
||||
configBase: memfs://tests/ha.example.com
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ spec:
|
|||
api:
|
||||
dns: {}
|
||||
authorization:
|
||||
alwaysAllow: {}
|
||||
rbac: {}
|
||||
channel: stable
|
||||
cloudProvider: aws
|
||||
configBase: memfs://tests/ha.example.com
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ spec:
|
|||
api:
|
||||
dns: {}
|
||||
authorization:
|
||||
alwaysAllow: {}
|
||||
rbac: {}
|
||||
channel: stable
|
||||
cloudProvider: gce
|
||||
configBase: memfs://tests/ha-gce.example.com
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ spec:
|
|||
api:
|
||||
dns: {}
|
||||
authorization:
|
||||
alwaysAllow: {}
|
||||
rbac: {}
|
||||
channel: stable
|
||||
cloudProvider: aws
|
||||
configBase: memfs://tests/ha.example.com
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ spec:
|
|||
api:
|
||||
dns: {}
|
||||
authorization:
|
||||
alwaysAllow: {}
|
||||
rbac: {}
|
||||
channel: stable
|
||||
cloudProvider: aws
|
||||
configBase: memfs://tests/minimal.example.com
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ spec:
|
|||
api:
|
||||
dns: {}
|
||||
authorization:
|
||||
alwaysAllow: {}
|
||||
rbac: {}
|
||||
channel: stable
|
||||
cloudProvider: aws
|
||||
configBase: memfs://tests/minimal.example.com
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ spec:
|
|||
loadBalancer:
|
||||
type: Public
|
||||
authorization:
|
||||
alwaysAllow: {}
|
||||
rbac: {}
|
||||
channel: stable
|
||||
cloudProvider: aws
|
||||
configBase: memfs://tests/private.example.com
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ spec:
|
|||
loadBalancer:
|
||||
type: Public
|
||||
authorization:
|
||||
alwaysAllow: {}
|
||||
rbac: {}
|
||||
channel: stable
|
||||
cloudProvider: aws
|
||||
configBase: memfs://tests/private.example.com
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ spec:
|
|||
api:
|
||||
dns: {}
|
||||
authorization:
|
||||
alwaysAllow: {}
|
||||
rbac: {}
|
||||
channel: stable
|
||||
cloudProvider: aws
|
||||
configBase: memfs://tests/overrides.example.com
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ spec:
|
|||
loadBalancer:
|
||||
type: Public
|
||||
authorization:
|
||||
alwaysAllow: {}
|
||||
rbac: {}
|
||||
channel: stable
|
||||
cloudLabels:
|
||||
Owner: John Doe
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ spec:
|
|||
loadBalancer:
|
||||
type: Public
|
||||
authorization:
|
||||
alwaysAllow: {}
|
||||
rbac: {}
|
||||
channel: stable
|
||||
cloudLabels:
|
||||
Owner: John Doe
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ spec:
|
|||
loadBalancer:
|
||||
type: Public
|
||||
authorization:
|
||||
alwaysAllow: {}
|
||||
rbac: {}
|
||||
channel: stable
|
||||
cloudProvider: aws
|
||||
configBase: memfs://tests/private-subnets.example.com
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ spec:
|
|||
api:
|
||||
dns: {}
|
||||
authorization:
|
||||
alwaysAllow: {}
|
||||
rbac: {}
|
||||
channel: stable
|
||||
cloudProvider: aws
|
||||
configBase: memfs://tests/subnet.example.com
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ spec:
|
|||
api:
|
||||
dns: {}
|
||||
authorization:
|
||||
alwaysAllow: {}
|
||||
rbac: {}
|
||||
channel: stable
|
||||
cloudProvider: aws
|
||||
configBase: memfs://tests/subnet.example.com
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ spec:
|
|||
api:
|
||||
dns: {}
|
||||
authorization:
|
||||
alwaysAllow: {}
|
||||
rbac: {}
|
||||
channel: stable
|
||||
cloudProvider: aws
|
||||
configBase: memfs://tests/subnet.example.com
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ spec:
|
|||
api:
|
||||
dns: {}
|
||||
authorization:
|
||||
alwaysAllow: {}
|
||||
rbac: {}
|
||||
channel: stable
|
||||
cloudProvider: aws
|
||||
configBase: memfs://tests/subnet.example.com
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ spec:
|
|||
api:
|
||||
dns: {}
|
||||
authorization:
|
||||
alwaysAllow: {}
|
||||
rbac: {}
|
||||
channel: stable
|
||||
cloudProvider: aws
|
||||
configBase: memfs://tests/vpc.example.com
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ spec:
|
|||
api:
|
||||
dns: {}
|
||||
authorization:
|
||||
alwaysAllow: {}
|
||||
rbac: {}
|
||||
channel: stable
|
||||
cloudProvider: aws
|
||||
configBase: memfs://tests/vpc.example.com
|
||||
|
|
|
|||
Loading…
Reference in New Issue