mirror of
https://github.com/kubesphere/website.git
synced 2025-12-31 19:12:49 +00:00
add add-on error faq
Signed-off-by: Sherlock113 <sherlockxu@yunify.com>
This commit is contained in:
parent
7a4481e929
commit
8bb21ae096
|
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
title: "Install an Add-on through YAML Using KubeKey"
|
||||
keywords: "Installer, KubeKey, KubeSphere, Kubernetes, add-ons"
|
||||
description: "Fail to install an add-on through YAML using KubeKey"
|
||||
linkTitle: "Install an Add-on through YAML Using KubeKey"
|
||||
Weight: 16400
|
||||
---
|
||||
|
||||
When you use KubeKey to install add-ons, you put the add-on information (Chart or YAML) under the `addons` field in the configuration file (`config-sample.yaml` by default). If the add-on configuration is provided as a YAML file, in some cases, you may see an error message similar to this during the installation:
|
||||
|
||||
```bash
|
||||
Error from server: failed to create typed patch object: xxx: element 0: associative list with keys has an element that omits key field "protocol"
|
||||
```
|
||||
|
||||
This is a [known issue of Kubernetes itself](https://github.com/kubernetes-sigs/structured-merge-diff/issues/130), caused by the flag `--server-side`. To solve this issue, do not add your add-on in the configuration file. Instead, you can apply your YAML file after KubeSphere is deployed. For example:
|
||||
|
||||
```bash
|
||||
kubectl apply -f xxx.yaml # Use your own YAML file.
|
||||
```
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
title: "Install an Add-on through YAML Using KubeKey"
|
||||
keywords: "Installer, KubeKey, KubeSphere, Kubernetes, add-ons"
|
||||
description: "Fail to install an add-on through YAML using KubeKey"
|
||||
linkTitle: "Install an Add-on through YAML Using KubeKey"
|
||||
Weight: 16400
|
||||
---
|
||||
|
||||
When you use KubeKey to install add-ons, you put the add-on information (Chart or YAML) under the `addons` field in the configuration file (`config-sample.yaml` by default). If the add-on configuration is provided as a YAML file, in some cases, you may see an error message similar to this during the installation:
|
||||
|
||||
```bash
|
||||
Error from server: failed to create typed patch object: xxx: element 0: associative list with keys has an element that omits key field "protocol"
|
||||
```
|
||||
|
||||
This is a [known issue of Kubernetes itself](https://github.com/kubernetes-sigs/structured-merge-diff/issues/130), caused by the flag `--server-side`. To solve this issue, do not add your add-on in the configuration file. Instead, you can apply your YAML file after KubeSphere is deployed. For example:
|
||||
|
||||
```bash
|
||||
kubectl apply -f xxx.yaml # Use your own YAML file.
|
||||
```
|
||||
Loading…
Reference in New Issue