我们将 kubernetes 集群从 v1.21 升级到 v1.22。执行此操作后,我们发现 nginx-ingress-controller 部署\xe2\x80\x99s pod 无法启动,并显示以下错误消息:\npkg/mod/k8s.io/client-go@v0.18.5/tools/cache/reflector.go:125: Failed to list *v1beta1.Ingress: the server could not find the requested resource
我们发现这个问题在这里跟踪:https://github.com/bitnami/charts/issues/7264
\n因为 azure 不允许将集群降级回 1.21,您能帮我们修复 nginx-ingress-controller 部署吗?由于我们不太熟悉helm.
这是我们的部署当前 yaml:
\nkind: Deployment\napiVersion: apps/v1\nmetadata:\n name: nginx-ingress-controller\n namespace: ingress\n uid: 575c7699-1fd5-413e-a81d-b183f8822324\n resourceVersion: \'166482672\'\n generation: 16\n creationTimestamp: \'2020-10-10T10:20:07Z\'\n labels:\n app: nginx-ingress\n app.kubernetes.io/component: controller\n app.kubernetes.io/managed-by: Helm\n chart: nginx-ingress-1.41.1\n heritage: Helm\n release: nginx-ingress\n annotations:\n deployment.kubernetes.io/revision: \'2\'\n meta.helm.sh/release-name: nginx-ingress\n meta.helm.sh/release-namespace: ingress\n managedFields:\n - manager: kube-controller-manager\n operation: Update\n …Run Code Online (Sandbox Code Playgroud) nginx kubernetes kubernetes-helm kubernetes-ingress azure-aks
我使用“typescript + webpack”模板创建了一个 Electron forge 项目,如forge 指南中所述:
yarn create electron-app debugging-test --template=typescript-webpack
Run Code Online (Sandbox Code Playgroud)
并向其中添加了 React,也如不同子页面上的指南中所述:
yarn add react react-dom
yarn add --dev @types/react @types/react-dom
Run Code Online (Sandbox Code Playgroud)
并像这样集成它:
{imports section}
ReactDOM.render(
<React.StrictMode>
<Provider store={store}>
<Router>
<Routes>
<Route path='/main_window' element={<App />}>
<Route index element={<HomePage />} />
<Route path='about' element={<AboutPage />} />
<Route path='login' element={<LoginPage />} />
<Route path='*' element={<PageNotFound />} />
</Route>
</Routes>
</Router>
</Provider>
</React.StrictMode>,
reactAppDiv);
Run Code Online (Sandbox Code Playgroud)
现在,当我运行该应用程序时,npm start它工作正常,但例如,当显示登录页面并且我点击ctrl+时r,我会得到一个空白页面,在开发工具中Cannot GET /main_window/page显示错误。404
我发现“纯”React 应用程序也存在类似问题,将以下内容添加到 webpack …