-
Notifications
You must be signed in to change notification settings - Fork 230
USHIFT-673: Clean up config file format #1187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,19 +10,20 @@ The MicroShift configuration file must be located at `~/.microshift/config.yaml` | |
| The format of the `config.yaml` configuration file is as follows. | ||
|
|
||
| ```yaml | ||
| subjectAltNames: | ||
| - "" | ||
| nodeName: "" | ||
| nodeIP: "" | ||
| url: "" | ||
| dns: | ||
| baseDomain: "" | ||
| network: | ||
| clusterNetwork: | ||
| - cidr: "" | ||
| serviceNetwork: | ||
| - "" | ||
| serviceNodePortRange: "" | ||
| dns: | ||
| baseDomain: "" | ||
| node: | ||
| hostnameOverride: "" | ||
|
dhellmann marked this conversation as resolved.
Outdated
|
||
| nodeIP: "" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This field is (currently) used for many things that are unrelated to Node/kubelet. Unless that's going to change, I think putting it into a "node" config group is misleading.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can see your point, though I wouldn't call those "many things" unrelated: Is there another grouping that'd make more sense to you? Should I revert to "nodeName" (although that also suggests "node") or use |
||
| apiServer: | ||
| subjectAltNames: | ||
|
fzdarsky marked this conversation as resolved.
Outdated
|
||
| - "" | ||
| debugging: | ||
| logLevel: "" | ||
| ``` | ||
|
|
@@ -34,10 +35,9 @@ The configuration settings alongside with the supported command line arguments a | |
| | cidr (clusterNetwork) | --cluster-cidr | MICROSHIFT_CLUSTER_CLUSTERCIDR | A block of IP addresses from which Pod IP addresses are allocated | ||
| | serviceNetwork | --service-cidr | MICROSHIFT_CLUSTER_SERVICECIDR | A block of virtual IP addresses for Kubernetes services | ||
| | serviceNodePortRange | --service-node-port-range | MICROSHIFT_CLUSTER_SERVICENODEPORTRANGE | The port range allowed for Kubernetes services of type NodePort | ||
| | baseDomain | --base-domain | MICROSHIFT_BASEDOMAIN | Base DNS domain used to construct fully qualified router and API domain names. | ||
| | url | --url | MICROSHIFT_CLUSTER_URL | URL of the API server for the cluster. | ||
| | baseDomain | --base-domain | MICROSHIFT_BASEDOMAIN | Base domain of the cluster. All managed DNS records will be sub-domains of this base. | ||
| | nodeIP | --node-ip | MICROSHIFT_NODEIP | The IP address of the node, defaults to IP of the default route | ||
| | nodeName | --node-name | MICROSHIFT_NODENAME | The name of the node, defaults to hostname | ||
| | hostnameOverride | --hostname-override | MICROSHIFT_HOSTNAMEOVERRIDE | The name of the node, defaults to hostname | ||
| | logLevel | --v | MICROSHIFT_LOGVLEVEL | Log verbosity (Normal, Debug, Trace, TraceAll) | ||
| | subjectAltNames | --subject-alt-names | MICROSHIFT_SUBJECTALTNAMES | Subject Alternative Names for apiserver certificates | ||
|
|
||
|
|
@@ -46,17 +46,19 @@ The configuration settings alongside with the supported command line arguments a | |
| In case `config.yaml` is not provided, the following default settings will be used. | ||
|
|
||
| ```yaml | ||
| nodeName: "" | ||
| nodeIP: "" | ||
| url: https://127.0.0.1:6443 | ||
| dns: | ||
| baseDomain: microshift.example.com | ||
| network: | ||
| clusterNetwork: | ||
| - cidr: 10.42.0.0/16 | ||
| serviceNetwork: | ||
| - 10.43.0.0/16 | ||
| serviceNodePortRange: 30000-32767 | ||
| dns: | ||
| baseDomain: example.com | ||
| node: | ||
| hostnameOverride: "" | ||
| nodeIP: '' | ||
| apiServer: | ||
| subjectAltNames: [] | ||
| debugging: | ||
| logLevel: "Normal" | ||
| ``` | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,30 +1,31 @@ | ||
| # Cluster settings | ||
| cluster: | ||
| dns: | ||
| # Base domain of the cluster. All managed DNS records will be sub-domains of this base. | ||
| #baseDomain: microshift.example.com | ||
|
|
||
| network: | ||
| clusterNetwork: | ||
| # IP range for use by the cluster | ||
| #clusterCIDR: 10.42.0.0/16 | ||
|
|
||
| # Base DNS domain used to construct fully qualified pod and service domain names | ||
| #domain: cluster.local | ||
| #- cidr: 10.42.0.0/16 | ||
|
|
||
| serviceNetwork: | ||
| # IP range for services in the cluster | ||
| #serviceCIDR: 10.43.0.0/16 | ||
| #- 10.43.0.0/16 | ||
|
|
||
| # Node ports allowed for services | ||
| #serviceNodePortRange: 30000-32767 | ||
|
|
||
| # URL of the API server for the cluster | ||
| #url: https://127.0.0.1:6443 | ||
|
|
||
| # Log verbosity (0-5) | ||
| #logVLevel: 0 | ||
|
|
||
| # The IP of the node (defaults to IP of default route) | ||
| #nodeIP: "" | ||
| node: | ||
| # If non-empty, use this string to identify the node instead of the hostname | ||
| #hostnameOverride: '' | ||
|
|
||
| # The name of the node (defaults to hostname) | ||
| #nodeName: "" | ||
| # IP address of the node, passed to the kubelet. | ||
| # If not specified, kubelet will use the node's default IP address. | ||
| #nodeIP: '' | ||
|
|
||
| # The Subject Alternative Names for the external certificates in API server (defaults to hostname -A) | ||
| #subjectAltNames: "" | ||
| apiServer: | ||
| # The Subject Alternative Names for the external certificates in API server (defaults to hostname -A) | ||
| #subjectAltNames: [] | ||
|
|
||
| debugging: | ||
| # Log verbosity ('Normal', 'Debug', 'Trace', 'TraceAll'): | ||
| #logLevel: 'Normal' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -67,7 +67,7 @@ func TestConfigure(t *testing.T) { | |
| "--secure-port=10257", | ||
| fmt.Sprintf("--service-account-private-key-file=%s", kcmServiceAccountPrivateKeyFile()), | ||
| "--use-service-account-credentials=true", | ||
| "-v=0", | ||
| "-v=2", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should set it to
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "Normal" corresponds to "2", correct?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @dgrisonnet we commented about that here. Do you mean that? |
||
| } | ||
|
|
||
| argsGot := kcm.args | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.