解决问题:
vim /usr/local/k8s/apiserver/conf/apiserver.conf --service-account-signing-key-file=/usr/local/k8s/ca/ca-key.pem \ --service-account-issuer=https://kubernetes.default.svc.cluster.local \
解决问题:
解决问题方法一:配置环境变量
apiVersion: apps/v1 kind: Deployment metadata: spec: template: spec: containers: env: - name: TZ #添加该环境变量 value: Asia/Shanghai
解决问题方法二:挂载时间文件
apiVersion: apps/v1 kind: Deployment metadata: spec: template: spec: containers: volumeMounts: - name: time-mount mountPath: /etc/localtime #将Asia/Shanghai挂载的容器中 volumes: - name: time-mount hostPath: path: /usr/share/zoneinfo/Asia/Shanghai
问题描述:
//ADDRESS没有获取地址 ]# kubectl get ingress -o wide NAME CLASS HOSTS ADDRESS PORTS AGE my-ingress <none> localhost 80 118s //日志开头虽然是I,但是它是有问题的 ]# kubectl logs ingress-nginx-controller-5767958868-k9576 -n ingress-nginx I0407 01:03:50.088521 6 store.go:342] "Ignoring ingress because of error while validating ingress class" ingress="default/my-ingress" error="ingress does not contain a valid IngressClass"
解决问题:
apiVersion: networking.k8s.io/v1 kind: Ingress metadata: annotations: kubernetes.io/ingress.class: "nginx" #加上该注解 spec:
1
# #