升級 NCP
NSX Container Plugin Operator 負責管理 NCP 的生命週期。
從 https://downloads.vmware.com 下載最新的 nsx-container zip 檔案 (
nsx-container-x.x.x.y.zip
)。升級需要以下 tar 檔案:
- nsx-container-x.x.x.y/Kubernetes/nsx-container-plugin-operator-x.x.x.y.tar
- nsx-container-x.x.x.y/Kubernetes/nsx-ncp-ubi-x.x.x.y.tar
必須將這兩個映像上傳至容器登錄。
NCP 升級是透過更新 NCP Operator 和 NCP 映像來完成。執行升級之前,請先查看版本說明以瞭解有關產品相容性的資訊。
- 編輯operator.yaml。修改 nsx-ncp-container 映像:containers: - name: nsx-ncp-operator image: <URL to the NCP operator in your container registry>修改 NCP_IMAGE URL:- name: nsx-ncp-operator image: <URL to the NCP operator in your container registry>
- 使用此版本的任何新的必填欄位來更新configmap.yaml。版本說明中提供了有關任何新必要屬性的資訊。
- 使用以下命令來套用role.yaml。oc apply -f role.yaml -n nsx-system-operator
- 使用以下命令在命名空間中套用operator.yaml(以及configmap.yamlnsx-system-operator,如果已變更)。oc apply -f operator.yaml -n nsx-system-operator無需編輯執行中的組態。