摘要:heml version: helm3 harbor 需要装插件。 helm 需要安装helml-push 插件 helm plugin install https://github.com/chartmuseum/helm-push.git 或者 wget https://github.com/c
阅读全文
摘要:解决办法 kubectl get -n kube-system -o yaml cm aws-auth | sed -E 's/[[:space:]]+\\n/\\n/g' | kubectl apply -f - 或者原文件 sed -i -E 's/[[:space:]]+\\n/\\n/g'
阅读全文
摘要:Error from server (NotFound): the server could not find the requested resource (get services http:heapster:) [root@init 1.8+]# kubectl logs -n kube-sy
阅读全文
摘要:apiVersion: apps/v1 kind: Deployment metadata: name: nginx spec: replicas: 1 selector: matchLabels: app: nginx template: metadata: labels: app: nginx
阅读全文
摘要:apiVersion: apps/v1 kind: Deployment metadata: name: mysql2 spec: replicas: 1 selector: matchLabels: app: mysql2 template: metadata: labels: app: mysq
阅读全文
摘要:apiVersion: v1 kind: ConfigMap metadata: name: nginx-configmap2 data: default.conf: | server { listen 81; server_name localhost; location / { root /us
阅读全文
摘要:apiVersion: apps/v1 kind: Deployment metadata: name: nginx spec: replicas: 1 selector: matchLabels: app: nginx template: metadata: labels: app: nginx
阅读全文