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
|
// Default to open API & SSH access
|
||||||
o.AdminAccess = []string{"0.0.0.0/0"}
|
o.AdminAccess = []string{"0.0.0.0/0"}
|
||||||
|
|
||||||
o.Authorization = AuthorizationFlagAlwaysAllow
|
o.Authorization = AuthorizationFlagRBAC
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
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])
|
--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'
|
--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'.
|
--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.
|
--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")
|
--channel string Channel for default versions and configuration to use (default "stable")
|
||||||
--cloud string Cloud provider to use - gce, aws, vsphere
|
--cloud string Cloud provider to use - gce, aws, vsphere
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
dns: {}
|
||||||
authorization:
|
authorization:
|
||||||
alwaysAllow: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
cloudProvider: aws
|
cloudProvider: aws
|
||||||
configBase: memfs://tests/complex.example.com
|
configBase: memfs://tests/complex.example.com
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
dns: {}
|
||||||
authorization:
|
authorization:
|
||||||
alwaysAllow: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
cloudProvider: aws
|
cloudProvider: aws
|
||||||
configBase: memfs://tests/ha.example.com
|
configBase: memfs://tests/ha.example.com
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
dns: {}
|
||||||
authorization:
|
authorization:
|
||||||
alwaysAllow: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
cloudProvider: aws
|
cloudProvider: aws
|
||||||
configBase: memfs://tests/ha.example.com
|
configBase: memfs://tests/ha.example.com
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
dns: {}
|
||||||
authorization:
|
authorization:
|
||||||
alwaysAllow: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
cloudProvider: aws
|
cloudProvider: aws
|
||||||
configBase: memfs://tests/ha.example.com
|
configBase: memfs://tests/ha.example.com
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
dns: {}
|
||||||
authorization:
|
authorization:
|
||||||
alwaysAllow: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
cloudProvider: aws
|
cloudProvider: aws
|
||||||
configBase: memfs://tests/ha.example.com
|
configBase: memfs://tests/ha.example.com
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
dns: {}
|
||||||
authorization:
|
authorization:
|
||||||
alwaysAllow: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
cloudProvider: gce
|
cloudProvider: gce
|
||||||
configBase: memfs://tests/ha-gce.example.com
|
configBase: memfs://tests/ha-gce.example.com
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
dns: {}
|
||||||
authorization:
|
authorization:
|
||||||
alwaysAllow: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
cloudProvider: aws
|
cloudProvider: aws
|
||||||
configBase: memfs://tests/ha.example.com
|
configBase: memfs://tests/ha.example.com
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
dns: {}
|
||||||
authorization:
|
authorization:
|
||||||
alwaysAllow: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
cloudProvider: aws
|
cloudProvider: aws
|
||||||
configBase: memfs://tests/minimal.example.com
|
configBase: memfs://tests/minimal.example.com
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
dns: {}
|
||||||
authorization:
|
authorization:
|
||||||
alwaysAllow: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
cloudProvider: aws
|
cloudProvider: aws
|
||||||
configBase: memfs://tests/minimal.example.com
|
configBase: memfs://tests/minimal.example.com
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ spec:
|
||||||
loadBalancer:
|
loadBalancer:
|
||||||
type: Public
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
alwaysAllow: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
cloudProvider: aws
|
cloudProvider: aws
|
||||||
configBase: memfs://tests/private.example.com
|
configBase: memfs://tests/private.example.com
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ spec:
|
||||||
loadBalancer:
|
loadBalancer:
|
||||||
type: Public
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
alwaysAllow: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
cloudProvider: aws
|
cloudProvider: aws
|
||||||
configBase: memfs://tests/private.example.com
|
configBase: memfs://tests/private.example.com
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
dns: {}
|
||||||
authorization:
|
authorization:
|
||||||
alwaysAllow: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
cloudProvider: aws
|
cloudProvider: aws
|
||||||
configBase: memfs://tests/overrides.example.com
|
configBase: memfs://tests/overrides.example.com
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ spec:
|
||||||
loadBalancer:
|
loadBalancer:
|
||||||
type: Public
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
alwaysAllow: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
cloudLabels:
|
cloudLabels:
|
||||||
Owner: John Doe
|
Owner: John Doe
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ spec:
|
||||||
loadBalancer:
|
loadBalancer:
|
||||||
type: Public
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
alwaysAllow: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
cloudLabels:
|
cloudLabels:
|
||||||
Owner: John Doe
|
Owner: John Doe
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ spec:
|
||||||
loadBalancer:
|
loadBalancer:
|
||||||
type: Public
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
alwaysAllow: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
cloudProvider: aws
|
cloudProvider: aws
|
||||||
configBase: memfs://tests/private-subnets.example.com
|
configBase: memfs://tests/private-subnets.example.com
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
dns: {}
|
||||||
authorization:
|
authorization:
|
||||||
alwaysAllow: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
cloudProvider: aws
|
cloudProvider: aws
|
||||||
configBase: memfs://tests/subnet.example.com
|
configBase: memfs://tests/subnet.example.com
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
dns: {}
|
||||||
authorization:
|
authorization:
|
||||||
alwaysAllow: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
cloudProvider: aws
|
cloudProvider: aws
|
||||||
configBase: memfs://tests/subnet.example.com
|
configBase: memfs://tests/subnet.example.com
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
dns: {}
|
||||||
authorization:
|
authorization:
|
||||||
alwaysAllow: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
cloudProvider: aws
|
cloudProvider: aws
|
||||||
configBase: memfs://tests/subnet.example.com
|
configBase: memfs://tests/subnet.example.com
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
dns: {}
|
||||||
authorization:
|
authorization:
|
||||||
alwaysAllow: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
cloudProvider: aws
|
cloudProvider: aws
|
||||||
configBase: memfs://tests/subnet.example.com
|
configBase: memfs://tests/subnet.example.com
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
dns: {}
|
||||||
authorization:
|
authorization:
|
||||||
alwaysAllow: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
cloudProvider: aws
|
cloudProvider: aws
|
||||||
configBase: memfs://tests/vpc.example.com
|
configBase: memfs://tests/vpc.example.com
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
dns: {}
|
||||||
authorization:
|
authorization:
|
||||||
alwaysAllow: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
cloudProvider: aws
|
cloudProvider: aws
|
||||||
configBase: memfs://tests/vpc.example.com
|
configBase: memfs://tests/vpc.example.com
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue