Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ ARGS:
[open-id-connect-config.required-claim.{index}] Multiple key=value pairs describing a required claim in the ID token. If set, the claims are verified to be present in the ID token with a matching value
[apiserver-cert-sans.{index}] Additional Subject Alternative Names for the Kubernetes API server certificate
[private-network-id] Private network ID for internal cluster communication (cannot be changed later). For Kapsule clusters, if none is provided, a private network will be created
[pod-cidr] Subnet used for the Pod CIDR (cannot be changed later)
[service-cidr] Subnet used for the Service CIDR (cannot be changed later)
[service-dns-ip] IP used for the DNS Service (cannot be changes later). If unset, default to Service CIDR's network + 10
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

Expand Down
3 changes: 3 additions & 0 deletions docs/commands/k8s.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ scw k8s cluster create [arg=value ...]
| open-id-connect-config.required-claim.{index} | | Multiple key=value pairs describing a required claim in the ID token. If set, the claims are verified to be present in the ID token with a matching value |
| apiserver-cert-sans.{index} | | Additional Subject Alternative Names for the Kubernetes API server certificate |
| private-network-id | | Private network ID for internal cluster communication (cannot be changed later). For Kapsule clusters, if none is provided, a private network will be created |
| pod-cidr | | Subnet used for the Pod CIDR (cannot be changed later) |
| service-cidr | | Subnet used for the Service CIDR (cannot be changed later) |
| service-dns-ip | | IP used for the DNS Service (cannot be changes later). If unset, default to Service CIDR's network + 10 |
| organization-id | | Organization ID to use. If none is passed the default organization ID will be used |
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |

Expand Down
21 changes: 21 additions & 0 deletions internal/namespaces/k8s/v1/k8s_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,27 @@ func k8sClusterCreate() *core.Command {
Deprecated: false,
Positional: false,
},
{
Name: "pod-cidr",
Short: `Subnet used for the Pod CIDR (cannot be changed later)`,
Required: false,
Deprecated: false,
Positional: false,
},
{
Name: "service-cidr",
Short: `Subnet used for the Service CIDR (cannot be changed later)`,
Required: false,
Deprecated: false,
Positional: false,
},
{
Name: "service-dns-ip",
Short: `IP used for the DNS Service (cannot be changes later). If unset, default to Service CIDR's network + 10`,
Required: false,
Deprecated: false,
Positional: false,
},
core.OrganizationIDArgSpec(),
core.RegionArgSpec(
scw.RegionFrPar,
Expand Down
Loading