-
Notifications
You must be signed in to change notification settings - Fork 68
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
Update the support-bundle-image setting #624
base: main
Are you sure you want to change the base?
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 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -414,7 +414,9 @@ Specify an IP range in the IPv4 CIDR format. The number of IPs must be four time | |||||||||||||
|
||||||||||||||
**Definition**: Support bundle image, with various versions available in [rancher/support-bundle-kit](https://hub.docker.com/r/rancher/support-bundle-kit/tags). | ||||||||||||||
|
||||||||||||||
**Default value**: | ||||||||||||||
**Default value**: The default value is the `support-bundle-kit` image which is packed into the Harvester ISO. It varies between different Harvester releases. | ||||||||||||||
|
||||||||||||||
**Example**: After one Harvester cluster is installed, you observe that the `default` image tag is `v0.0.25`. | ||||||||||||||
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.
Suggested change
|
||||||||||||||
|
||||||||||||||
``` | ||||||||||||||
{ | ||||||||||||||
|
@@ -424,6 +426,99 @@ Specify an IP range in the IPv4 CIDR format. The number of IPs must be four time | |||||||||||||
} | ||||||||||||||
``` | ||||||||||||||
|
||||||||||||||
From CLI, the `support-bundle-image` setting object is like: | ||||||||||||||
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.
Suggested change
|
||||||||||||||
|
||||||||||||||
``` | ||||||||||||||
apiVersion: harvesterhci.io/v1beta1 | ||||||||||||||
default: '{"repository":"rancher/support-bundle-kit","tag":"v0.0.25","imagePullPolicy":"IfNotPresent"}' // default value, automatically set | ||||||||||||||
kind: Setting | ||||||||||||||
metadata: | ||||||||||||||
name: support-bundle-image | ||||||||||||||
... | ||||||||||||||
status: {} | ||||||||||||||
``` | ||||||||||||||
|
||||||||||||||
And you want to use the newer image tag `v0.0.36`, after setting from Harvester UI it is like: | ||||||||||||||
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.
Suggested change
|
||||||||||||||
|
||||||||||||||
![](/img/v1.3/advanced/support-bundle-image-set-customized-value.png) | ||||||||||||||
|
||||||||||||||
``` | ||||||||||||||
apiVersion: harvesterhci.io/v1beta1 | ||||||||||||||
default: '{"repository":"rancher/support-bundle-kit","tag":"v0.0.25","imagePullPolicy":"IfNotPresent"}' | ||||||||||||||
kind: Setting | ||||||||||||||
metadata: | ||||||||||||||
name: support-bundle-image | ||||||||||||||
... | ||||||||||||||
status: {} | ||||||||||||||
value: '{"repository":"rancher/support-bundle-kit","tag":"v0.0.36","imagePullPolicy":"IfNotPresent"}' // your setting value | ||||||||||||||
``` | ||||||||||||||
|
||||||||||||||
Later this cluster is upgraded, it is further like: | ||||||||||||||
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.
Suggested change
|
||||||||||||||
|
||||||||||||||
``` | ||||||||||||||
apiVersion: harvesterhci.io/v1beta1 | ||||||||||||||
default: '{"repository":"rancher/support-bundle-kit","tag":"v0.0.38","imagePullPolicy":"IfNotPresent"}' // default value, automatically updated after upgrade | ||||||||||||||
kind: Setting | ||||||||||||||
metadata: | ||||||||||||||
name: support-bundle-image | ||||||||||||||
... | ||||||||||||||
status: {} | ||||||||||||||
value: '{"repository":"rancher/support-bundle-kit","tag":"v0.0.36","imagePullPolicy":"IfNotPresent"}' // your setting value is kept unchanged | ||||||||||||||
``` | ||||||||||||||
|
||||||||||||||
Now the set `value` has image tag `v0.0.36` but the default image tag is `v0.0.38`, it is outdated. | ||||||||||||||
|
||||||||||||||
To clear the customized setting and stick to the default value, you need to operate with `kubectl`, then remove the whole line of `value` and save. | ||||||||||||||
Comment on lines
+469
to
+471
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.
Suggested change
|
||||||||||||||
|
||||||||||||||
``` | ||||||||||||||
$ kubectl edit settings.harvesterhci.io support-bundle-image | ||||||||||||||
``` | ||||||||||||||
|
||||||||||||||
After clearing the customized setting, it is like: | ||||||||||||||
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.
Suggested change
|
||||||||||||||
|
||||||||||||||
``` | ||||||||||||||
apiVersion: harvesterhci.io/v1beta1 | ||||||||||||||
default: '{"repository":"rancher/support-bundle-kit","tag":"v0.0.38","imagePullPolicy":"IfNotPresent"}' | ||||||||||||||
kind: Setting | ||||||||||||||
metadata: | ||||||||||||||
name: support-bundle-image | ||||||||||||||
... | ||||||||||||||
status: {} | ||||||||||||||
``` | ||||||||||||||
|
||||||||||||||
For this setting, the UI menu **Use the default value** copies the `default` to the `value` field. | ||||||||||||||
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.
Suggested change
|
||||||||||||||
|
||||||||||||||
![](/img/v1.3/advanced/support-bundle-image-set-use-default-value.png) | ||||||||||||||
|
||||||||||||||
After clicking **Save**, the object is updated to: | ||||||||||||||
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.
Suggested change
|
||||||||||||||
|
||||||||||||||
``` | ||||||||||||||
apiVersion: harvesterhci.io/v1beta1 | ||||||||||||||
default: '{"repository":"rancher/support-bundle-kit","tag":"v0.0.38","imagePullPolicy":"IfNotPresent"}' // default | ||||||||||||||
kind: Setting | ||||||||||||||
metadata: | ||||||||||||||
name: support-bundle-image | ||||||||||||||
... | ||||||||||||||
status: {} | ||||||||||||||
value: '{"repository":"rancher/support-bundle-kit","tag":"v0.0.38","imagePullPolicy":"IfNotPresent"}' // copied from default | ||||||||||||||
``` | ||||||||||||||
|
||||||||||||||
In the future when you upgrade the cluster to a new version the `default` image tag may be like `v0.0.40`, the `value` field will be outdated again. | ||||||||||||||
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.
Suggested change
|
||||||||||||||
|
||||||||||||||
:::note | ||||||||||||||
|
||||||||||||||
- Harvester always sets the `default` field to the image tag which is packed into Harvester ISO. When the cluster is upgraded, the `default` field is also updated automatically. As long as the `value` field is not set or empty, Harvester sticks to the `default` field. It makes sure the image is on the cluster and is up-to-date. | ||||||||||||||
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.
Suggested change
|
||||||||||||||
|
||||||||||||||
- In general you do not need to set this setting. If you plan to set a specific image, be aware that it will take precedence of the `default` and is not updated automatically. | ||||||||||||||
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.
Suggested change
|
||||||||||||||
|
||||||||||||||
- If you have set a customized image but want to follow the default image, then use the `kubectl` command to clear the `value` field. | ||||||||||||||
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.
Suggested change
|
||||||||||||||
|
||||||||||||||
- The UI menu **Use the default value** is not the best option to clear this setting. It copies the current `default` to `value`, the `default` will be updated when upgrading but the `value` field will not. | ||||||||||||||
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. It is a bit surprised to observe the side affect of Alternatively, if user clicks In different Harvester releases, Harvester may change the WDYT? thanks. 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.
Suggested change
|
||||||||||||||
|
||||||||||||||
- If your cluster is in an air-gapped environment and the set `support-bundle-image` is not the default one, you need to prepare this image on your local [containerd registry](#containerd-registry). The operation [Generate a Support Bundle](../troubleshooting/harvester.md#generate-a-support-bundle) will fail if the set image is not available. | ||||||||||||||
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.
Suggested change
|
||||||||||||||
|
||||||||||||||
::: | ||||||||||||||
|
||||||||||||||
### `support-bundle-namespaces` | ||||||||||||||
|
||||||||||||||
**Versions**: v1.2.0 and later | ||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.