如题,前两天已经装过ks3.0,因为流水线的配置有点问题,今天卸载后想重装下,但是执行安装命令:
kubectl apply -f https://raw.githubusercontent.com/kubesphere/ks-installer/v3.0.0-alpha.1/deploy/kubesphere-installer.yaml
后,NAMESPACE 和 deployments 都创建出来了,但是等了半天,ks-installer的pod一直起不来,查看deployment的日志,是这样的:
[root@master1 ~]# kubectl describe deployments ks-installer -n kubesphere-system
Name: ks-installer
Namespace: kubesphere-system
CreationTimestamp: Mon, 13 Jul 2020 10:46:52 +0800
Labels: app=ks-install
Annotations: deployment.kubernetes.io/revision: 1
kubectl.kubernetes.io/last-applied-configuration:
{"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{},"labels":{"app":"ks-install"},"name":"ks-installer","namespace":"...
Selector: app=ks-install
Replicas: 1 desired | 0 updated | 0 total | 0 available | 1 unavailable
StrategyType: RollingUpdate
MinReadySeconds: 0
RollingUpdateStrategy: 25% max unavailable, 25% max surge
Pod Template:
Labels: app=ks-install
Service Account: ks-installer
Containers:
installer:
Image: kubespheredev/ks-installer:v3.0.0-dev
Port: <none>
Host Port: <none>
Environment: <none>
Mounts:
/etc/localtime from host-time (rw)
Volumes:
host-time:
Type: HostPath (bare host directory volume)
Path: /etc/localtime
HostPathType:
Conditions:
Type Status Reason
---- ------ ------
Available False MinimumReplicasUnavailable
ReplicaFailure True FailedCreate
Progressing False ProgressDeadlineExceeded
OldReplicaSets: <none>
NewReplicaSet: ks-installer-c588bcbdf (0/1 replicas created)
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal ScalingReplicaSet 17m deployment-controller Scaled up replica set ks-installer-c588bcbdf to 1`,
再查rs的日志:
`[root@master1 ~]# kubectl describe rs/ks-installer-c588bcbdf -n kubesphere-system
Name: ks-installer-c588bcbdf
Namespace: kubesphere-system
Selector: app=ks-install,pod-template-hash=c588bcbdf
Labels: app=ks-install
pod-template-hash=c588bcbdf
Annotations: deployment.kubernetes.io/desired-replicas: 1
deployment.kubernetes.io/max-replicas: 2
deployment.kubernetes.io/revision: 1
Controlled By: Deployment/ks-installer
Replicas: 0 current / 1 desired
Pods Status: 0 Running / 0 Waiting / 0 Succeeded / 0 Failed
Pod Template:
Labels: app=ks-install
pod-template-hash=c588bcbdf
Service Account: ks-installer
Containers:
installer:
Image: kubespheredev/ks-installer:v3.0.0-dev
Port: <none>
Host Port: <none>
Environment: <none>
Mounts:
/etc/localtime from host-time (rw)
Volumes:
host-time:
Type: HostPath (bare host directory volume)
Path: /etc/localtime
HostPathType:
Conditions:
Type Status Reason
---- ------ ------
ReplicaFailure True FailedCreate
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedCreate 6m10s (x18 over 17m) replicaset-controller Error creating: Internal error occurred: failed calling webhook "sidecar-injector.istio.io": Post https://istio-sidecar-injector.istio-system.svc:443/inject?timeout=30s: service "istio-sidecar-injector" not found
发现是istio的问题,但是这个已经删除了,怎么处理呢?谢谢