zackzhang 看着好像没什么问题吧
# kubectl -n kubesphere-system get cc -oyaml
apiVersion: v1
items:
- apiVersion: installer.kubesphere.io/v1alpha1
kind: ClusterConfiguration
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"installer.kubesphere.io/v1alpha1","kind":"ClusterConfiguration","metadata":{"annotations":{},"labels":{"version":"v3.0.0"},"name":"ks-installer","namespace":"kubesphere-system"},"spec":{"alerting":{"enabled":true},"auditing":{"enabled":false},"authentication":{"jwtSecret":""},"common":{"es":{"elasticsearchDataVolumeSize":"20Gi","elasticsearchMasterVolumeSize":"4Gi","elkPrefix":"logstash","logMaxAge":7},"etcdVolumeSize":"20Gi","minioVolumeSize":"20Gi","mysqlVolumeSize":"20Gi","openldapVolumeSize":"2Gi","redisVolumSize":"2Gi"},"console":{"enableMultiLogin":true,"port":30880},"devops":{"enabled":true,"jenkinsJavaOpts_MaxRAM":"8g","jenkinsJavaOpts_Xms":"3g","jenkinsJavaOpts_Xmx":"6g","jenkinsMemoryLim":"8Gi","jenkinsMemoryReq":"4Gi","jenkinsVolumeSize":"8Gi"},"etcd":{"endpointIps":"10.1.1.120","monitoring":true,"port":2379,"tlsEnable":true},"events":{"enabled":false,"ruler":{"enabled":false,"replicas":2}},"logging":{"enabled":true,"logsidecarReplicas":2},"metrics_server":{"enabled":true},"monitoring":{"prometheusMemoryRequest":"400Mi","prometheusVolumeSize":"20Gi"},"multicluster":{"clusterRole":"none"},"networkpolicy":{"enabled":false},"notification":{"enabled":true},"openpitrix":{"enabled":true},"persistence":{"storageClass":"nfs-client"},"servicemesh":{"enabled":true}}}
creationTimestamp: "2020-09-15T05:23:13Z"
generation: 21
labels:
version: v3.0.0
name: ks-installer
namespace: kubesphere-system
resourceVersion: "11763997"
selfLink: /apis/installer.kubesphere.io/v1alpha1/namespaces/kubesphere-system/clusterconfigurations/ks-installer
uid: 27d9cd3f-60e7-41f1-b23f-19a9d957c350
spec:
alerting:
enabled: true
auditing:
enabled: false
authentication:
jwtSecret: ""
common:
es:
elasticsearchDataVolumeSize: 20Gi
elasticsearchMasterVolumeSize: 4Gi
elkPrefix: logstash
logMaxAge: 7
etcdVolumeSize: 20Gi
minioVolumeSize: 20Gi
mysqlVolumeSize: 20Gi
openldapVolumeSize: 2Gi
redisVolumSize: 2Gi
console:
enableMultiLogin: true
port: 30880
devops:
enabled: true
jenkinsJavaOpts_MaxRAM: 8g
jenkinsJavaOpts_Xms: 3g
jenkinsJavaOpts_Xmx: 6g
jenkinsMemoryLim: 8Gi
jenkinsMemoryReq: 4Gi
jenkinsVolumeSize: 8Gi
etcd:
endpointIps: 10.1.1.120
monitoring: true
port: 2379
tlsEnable: true
events:
enabled: false
ruler:
enabled: false
replicas: 2
logging:
enabled: true
logsidecarReplicas: 2
metrics_server:
enabled: true
monitoring:
prometheusMemoryRequest: 400Mi
prometheusVolumeSize: 20Gi
multicluster:
clusterRole: none
networkpolicy:
enabled: false
notification:
enabled: true
openpitrix:
enabled: true
persistence:
local_registry: 10.1.1.128
storageClass: nfs-client
servicemesh:
enabled: true
status:
alerting:
enabledTime: 2020-09-29T10:44:04CST
status: enabled
clusterId: 27b20d34-f751-11ea-87ee-becd9fc6a0d8
core:
enabledTime: 2020-09-15T20:32:29CST
migration: true
status: enabled
devops:
enabledTime: 2020-09-15T20:43:30CST
status: enabled
fluentbit:
enabledTime: 2020-09-15T20:31:02CST
status: enabled
logging:
enabledTime: 2020-09-15T20:32:59CST
status: enabled
metricsServer:
enabledTime: 2020-09-15T20:29:21CST
status: enabled
minio:
enabledTime: 2020-09-15T20:30:35CST
status: enabled
monitoring:
enabledTime: 2020-09-15T20:34:29CST
status: enabled
mysql:
enabledTime: 2020-09-15T20:30:36CST
status: enabled
notification:
enabledTime: 2020-09-15T20:32:48CST
status: enabled
openldap:
enabledTime: 2020-09-15T20:30:24CST
status: enabled
openpitrix:
enabledTime: 2020-09-15T20:32:59CST
status: enabled
redis:
enabledTime: 2020-09-15T20:30:18CST
status: enabled
servicemesh:
enabledTime: 2020-09-28T18:52:56CST
status: enabled
kind: List
metadata:
resourceVersion: ""
selfLink: ""
这是 ks-installer 一些日志,我记得好像因为镜像下载不下来的原因反复安装过几次,最后把镜像上传到了本地仓库,提示安装成功了。
kubectl logs ks-installer-85854b8c8-486t9 -n kubesphere-system
2020-09-29T10:42:14+08:00 INFO : shell-operator latest
2020-09-29T10:42:14+08:00 INFO : HTTP SERVER Listening on 0.0.0.0:9115
2020-09-29T10:42:14+08:00 INFO : Use temporary dir: /tmp/shell-operator
2020-09-29T10:42:14+08:00 INFO : Initialize hooks manager ...
2020-09-29T10:42:14+08:00 INFO : Search and load hooks ...
2020-09-29T10:42:14+08:00 INFO : Load hook config from '/hooks/kubesphere/installRunner.py'
2020-09-29T10:42:15+08:00 INFO : Load hook config from '/hooks/kubesphere/schedule.sh'
2020-09-29T10:42:15+08:00 INFO : Initializing schedule manager ...
2020-09-29T10:42:15+08:00 INFO : KUBE Init Kubernetes client
2020-09-29T10:42:15+08:00 INFO : KUBE-INIT Kubernetes client is configured successfully
2020-09-29T10:42:15+08:00 INFO : MAIN: run main loop
2020-09-29T10:42:15+08:00 INFO : MAIN: add onStartup tasks
2020-09-29T10:42:15+08:00 INFO : Running schedule manager ...
2020-09-29T10:42:15+08:00 INFO : MSTOR Create new metric shell_operator_live_ticks
2020-09-29T10:42:15+08:00 INFO : MSTOR Create new metric shell_operator_tasks_queue_length
2020-09-29T10:42:15+08:00 INFO : QUEUE add all HookRun@OnStartup
2020-09-29T10:42:15+08:00 INFO : GVR for kind 'ClusterConfiguration' is installer.kubesphere.io/v1alpha1, Resource=clusterconfigurations
2020-09-29T10:42:15+08:00 INFO : EVENT Kube event '4bd16830-9d99-4152-b564-89cc229b794d'
2020-09-29T10:42:15+08:00 INFO : QUEUE add TASK_HOOK_RUN@KUBE_EVENTS kubesphere/installRunner.py
2020-09-29T10:42:18+08:00 INFO : TASK_RUN HookRun@KUBE_EVENTS kubesphere/installRunner.py
2020-09-29T10:42:18+08:00 INFO : Running hook 'kubesphere/installRunner.py' binding 'KUBE_EVENTS' ...
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match 'all'
PLAY [localhost] ***************************************************************
TASK [download : include_tasks] ************************************************
skipping: [localhost]
TASK [download : Download items] ***********************************************
skipping: [localhost]
TASK [download : Sync container] ***********************************************
skipping: [localhost]
TASK [kubesphere-defaults : Configure defaults] ********************************
ok: [localhost] => {
"msg": "Check roles/kubesphere-defaults/defaults/main.yml"
}
TASK [preinstall : check k8s version] ******************************************
changed: [localhost]
TASK [preinstall : init k8s version] *******************************************
ok: [localhost]
TASK [preinstall : Stop if kubernetes version is nonsupport] *******************
ok: [localhost] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [preinstall : check storage class] ****************************************
changed: [localhost]
TASK [preinstall : Stop if StorageClass was not found] *************************
ok: [localhost] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [preinstall : check default storage class] ********************************
changed: [localhost]
TASK [preinstall : Stop if defaultStorageClass was not found] ******************
skipping: [localhost]
TASK [preinstall : Kubesphere | Checking kubesphere component] *****************
changed: [localhost]
TASK [preinstall : Kubesphere | Get kubesphere component version] **************
changed: [localhost]
TASK [preinstall : Kubesphere | Get kubesphere component version] **************
skipping: [localhost] => (item=ks-openldap)
skipping: [localhost] => (item=ks-redis)
skipping: [localhost] => (item=ks-minio)
skipping: [localhost] => (item=ks-openpitrix)
skipping: [localhost] => (item=elasticsearch-logging)
skipping: [localhost] => (item=elasticsearch-logging-curator)
skipping: [localhost] => (item=istio)
skipping: [localhost] => (item=istio-init)
skipping: [localhost] => (item=jaeger-operator)
skipping: [localhost] => (item=ks-jenkins)
skipping: [localhost] => (item=ks-sonarqube)
skipping: [localhost] => (item=logging-fluentbit-operator)
skipping: [localhost] => (item=uc)
skipping: [localhost] => (item=metrics-server)
PLAY RECAP *********************************************************************
localhost : ok=9 changed=5 unreachable=0 failed=0 skipped=5 rescued=0 ignored=0
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match 'all'
PLAY [localhost] ***************************************************************
TASK [download : include_tasks] ************************************************
skipping: [localhost]
TASK [download : Download items] ***********************************************
skipping: [localhost]
TASK [download : Sync container] ***********************************************
skipping: [localhost]
TASK [kubesphere-defaults : Configure defaults] ********************************
ok: [localhost] => {
"msg": "Check roles/kubesphere-defaults/defaults/main.yml"
}
TASK [metrics-server : Metrics-Server | Checking old installation files] *******
skipping: [localhost]
TASK [metrics-server : Metrics-Server | deleting old metrics-server] ***********
skipping: [localhost]
TASK [metrics-server : Metrics-Server | deleting old metrics-server files] *****
skipping: [localhost] => (item=metrics-server)
TASK [metrics-server : Metrics-Server | Getting metrics-server installation files] ***
skipping: [localhost]
TASK [metrics-server : Metrics-Server | Creating manifests] ********************
skipping: [localhost] => (item={'name': 'values', 'file': 'values.yaml', 'type': 'config'})
TASK [metrics-server : Metrics-Server | Check Metrics-Server] ******************
skipping: [localhost]
TASK [metrics-server : Metrics-Server | Installing metrics-server] *************
skipping: [localhost]
TASK [metrics-server : Metrics-Server | Installing metrics-server retry] *******
skipping: [localhost]
TASK [metrics-server : Metrics-Server | Waitting for v1beta1.metrics.k8s.io ready] ***
skipping: [localhost]
TASK [metrics-server : Metrics-Server | import metrics-server status] **********
skipping: [localhost]
PLAY RECAP *********************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=0 skipped=13 rescued=0 ignored=0
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match 'all'
PLAY [localhost] ***************************************************************
TASK [download : include_tasks] ************************************************
skipping: [localhost]
TASK [download : Download items] ***********************************************
skipping: [localhost]
TASK [download : Sync container] ***********************************************
skipping: [localhost]
TASK [kubesphere-defaults : Configure defaults] ********************************
ok: [localhost] => {
"msg": "Check roles/kubesphere-defaults/defaults/main.yml"
}
TASK [common : Kubesphere | Check kube-node-lease namespace] *******************
changed: [localhost]
TASK [common : KubeSphere | Get system namespaces] *****************************
ok: [localhost]
TASK [common : set_fact] *******************************************************
ok: [localhost]
TASK [common : debug] **********************************************************
ok: [localhost] => {
"msg": [
"kubesphere-system",
"kubesphere-controls-system",
"kubesphere-monitoring-system",
"kube-node-lease",
"kubesphere-logging-system",
"openpitrix-system",
"kubesphere-devops-system",
"istio-system",
"kubesphere-alerting-system",
"istio-system"
]
}
TASK [common : KubeSphere | Create kubesphere namespace] ***********************
changed: [localhost] => (item=kubesphere-system)
changed: [localhost] => (item=kubesphere-controls-system)
changed: [localhost] => (item=kubesphere-monitoring-system)
changed: [localhost] => (item=kube-node-lease)
changed: [localhost] => (item=kubesphere-logging-system)
changed: [localhost] => (item=openpitrix-system)
changed: [localhost] => (item=kubesphere-devops-system)
changed: [localhost] => (item=istio-system)
changed: [localhost] => (item=kubesphere-alerting-system)
changed: [localhost] => (item=istio-system)
TASK [common : KubeSphere | Labeling system-workspace] *************************
changed: [localhost] => (item=default)
changed: [localhost] => (item=kube-public)
changed: [localhost] => (item=kube-system)
changed: [localhost] => (item=kubesphere-system)
changed: [localhost] => (item=kubesphere-controls-system)
changed: [localhost] => (item=kubesphere-monitoring-system)
changed: [localhost] => (item=kube-node-lease)
changed: [localhost] => (item=kubesphere-logging-system)
changed: [localhost] => (item=openpitrix-system)
changed: [localhost] => (item=kubesphere-devops-system)
changed: [localhost] => (item=istio-system)
changed: [localhost] => (item=kubesphere-alerting-system)
changed: [localhost] => (item=istio-system)
TASK [common : KubeSphere | Create ImagePullSecrets] ***************************
changed: [localhost] => (item=default)
changed: [localhost] => (item=kube-public)
changed: [localhost] => (item=kube-system)
changed: [localhost] => (item=kubesphere-system)
changed: [localhost] => (item=kubesphere-controls-system)
changed: [localhost] => (item=kubesphere-monitoring-system)
changed: [localhost] => (item=kube-node-lease)
changed: [localhost] => (item=kubesphere-logging-system)
changed: [localhost] => (item=openpitrix-system)
changed: [localhost] => (item=kubesphere-devops-system)
changed: [localhost] => (item=istio-system)
changed: [localhost] => (item=kubesphere-alerting-system)
changed: [localhost] => (item=istio-system)
TASK [common : Kubesphere | Label namespace for network policy] ****************
changed: [localhost]
TASK [common : KubeSphere | Getting kubernetes master num] *********************
changed: [localhost]
TASK [common : KubeSphere | Setting master num] ********************************
ok: [localhost]
TASK [common : Kubesphere | Getting common component installation files] *******
changed: [localhost] => (item=common)
changed: [localhost] => (item=ks-crds)
TASK [common : KubeSphere | Create KubeSphere crds] ****************************
changed: [localhost]
TASK [common : KubeSphere | Recreate KubeSphere crds] **************************
changed: [localhost]
TASK [common : KubeSphere | check k8s version] *********************************
changed: [localhost]
TASK [common : Kubesphere | Getting common component installation files] *******
changed: [localhost] => (item=snapshot-controller)
TASK [common : Kubesphere | Creating snapshot controller values] ***************
changed: [localhost] => (item={'name': 'custom-values-snapshot-controller', 'file': 'custom-values-snapshot-controller.yaml'})
TASK [common : Kubesphere | Remove old snapshot crd] ***************************
changed: [localhost]
TASK [common : Kubesphere | Deploy snapshot controller] ************************
changed: [localhost]
TASK [common : Kubesphere | Checking openpitrix common component] **************
changed: [localhost]
TASK [common : include_tasks] **************************************************
skipping: [localhost] => (item={'op': 'openpitrix-db', 'ks': 'mysql-pvc'})
skipping: [localhost] => (item={'op': 'openpitrix-etcd', 'ks': 'etcd-pvc'})
TASK [common : Getting PersistentVolumeName (mysql)] ***************************
skipping: [localhost]
TASK [common : Getting PersistentVolumeSize (mysql)] ***************************
skipping: [localhost]
TASK [common : Setting PersistentVolumeName (mysql)] ***************************
skipping: [localhost]
TASK [common : Setting PersistentVolumeSize (mysql)] ***************************
skipping: [localhost]
TASK [common : Getting PersistentVolumeName (etcd)] ****************************
skipping: [localhost]
TASK [common : Getting PersistentVolumeSize (etcd)] ****************************
skipping: [localhost]
TASK [common : Setting PersistentVolumeName (etcd)] ****************************
skipping: [localhost]
TASK [common : Setting PersistentVolumeSize (etcd)] ****************************
skipping: [localhost]
TASK [common : Kubesphere | Check mysql PersistentVolumeClaim] *****************
changed: [localhost]
TASK [common : Kubesphere | Setting mysql db pv size] **************************
ok: [localhost]
TASK [common : Kubesphere | Check redis PersistentVolumeClaim] *****************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "/usr/local/bin/kubectl get pvc -n kubesphere-system redis-pvc -o jsonpath='{.status.capacity.storage}'\n", "delta": "0:00:00.096294", "end": "2020-09-29 10:43:26.557393", "msg": "non-zero return code", "rc": 1, "start": "2020-09-29 10:43:26.461099", "stderr": "Error from server (NotFound): persistentvolumeclaims \"redis-pvc\" not found", "stderr_lines": ["Error from server (NotFound): persistentvolumeclaims \"redis-pvc\" not found"], "stdout": "", "stdout_lines": []}
...ignoring
TASK [common : Kubesphere | Setting redis db pv size] **************************
skipping: [localhost]
TASK [common : Kubesphere | Check minio PersistentVolumeClaim] *****************
changed: [localhost]
TASK [common : Kubesphere | Setting minio pv size] *****************************
ok: [localhost]
TASK [common : Kubesphere | Check openldap PersistentVolumeClaim] **************
changed: [localhost]
TASK [common : Kubesphere | Setting openldap pv size] **************************
ok: [localhost]
TASK [common : Kubesphere | Check etcd db PersistentVolumeClaim] ***************
changed: [localhost]
TASK [common : Kubesphere | Setting etcd pv size] ******************************
ok: [localhost]
TASK [common : Kubesphere | Check redis ha PersistentVolumeClaim] **************
changed: [localhost]
TASK [common : Kubesphere | Setting redis ha pv size] **************************
ok: [localhost]
TASK [common : Kubesphere | Check es-master PersistentVolumeClaim] *************
changed: [localhost]
TASK [common : Kubesphere | Setting es master pv size] *************************
ok: [localhost]
TASK [common : Kubesphere | Check es data PersistentVolumeClaim] ***************
changed: [localhost]
TASK [common : Kubesphere | Setting es data pv size] ***************************
ok: [localhost]
TASK [common : Kubesphere | Creating common component manifests] ***************
changed: [localhost] => (item={'path': 'etcd', 'file': 'etcd.yaml'})
changed: [localhost] => (item={'name': 'mysql', 'file': 'mysql.yaml'})
changed: [localhost] => (item={'path': 'redis', 'file': 'redis.yaml'})
TASK [common : Kubesphere | Creating mysql sercet] *****************************
changed: [localhost]
TASK [common : Kubesphere | Deploying etcd and mysql] **************************
skipping: [localhost] => (item=etcd.yaml)
skipping: [localhost] => (item=mysql.yaml)
TASK [common : Kubesphere | Getting minio installation files] ******************
skipping: [localhost] => (item=minio-ha)
TASK [common : Kubesphere | Creating manifests] ********************************
skipping: [localhost] => (item={'name': 'custom-values-minio', 'file': 'custom-values-minio.yaml'})
TASK [common : Kubesphere | Check minio] ***************************************
skipping: [localhost]
TASK [common : Kubesphere | Deploy minio] **************************************
skipping: [localhost]
TASK [common : debug] **********************************************************
skipping: [localhost]
TASK [common : fail] ***********************************************************
skipping: [localhost]
TASK [common : Kubesphere | create minio config directory] *********************
skipping: [localhost]
TASK [common : Kubesphere | Creating common component manifests] ***************
skipping: [localhost] => (item={'path': '/root/.config/rclone', 'file': 'rclone.conf'})
TASK [common : include_tasks] **************************************************
skipping: [localhost] => (item=helm)
skipping: [localhost] => (item=vmbased)
TASK [common : Kubesphere | import minio status] *******************************
skipping: [localhost]
TASK [common : Kubesphere | Check ha-redis] ************************************
skipping: [localhost]
TASK [common : Kubesphere | Getting redis installation files] ******************
skipping: [localhost] => (item=redis-ha)
TASK [common : Kubesphere | Creating manifests] ********************************
skipping: [localhost] => (item={'name': 'custom-values-redis', 'file': 'custom-values-redis.yaml'})
TASK [common : Kubesphere | Check old redis status] ****************************
skipping: [localhost]
TASK [common : Kubesphere | Delete and backup old redis svc] *******************
skipping: [localhost]
TASK [common : Kubesphere | Deploying redis] ***********************************
skipping: [localhost]
TASK [common : Kubesphere | Getting redis PodIp] *******************************
skipping: [localhost]
TASK [common : Kubesphere | Creating redis migration script] *******************
skipping: [localhost] => (item={'path': '/etc/kubesphere', 'file': 'redisMigrate.py'})
TASK [common : Kubesphere | Check redis-ha status] *****************************
skipping: [localhost]
TASK [common : ks-logging | Migrating redis data] ******************************
skipping: [localhost]
TASK [common : Kubesphere | Disable old redis] *********************************
skipping: [localhost]
TASK [common : Kubesphere | Deploying redis] ***********************************
skipping: [localhost] => (item=redis.yaml)
TASK [common : Kubesphere | import redis status] *******************************
skipping: [localhost]
TASK [common : Kubesphere | Getting openldap installation files] ***************
skipping: [localhost] => (item=openldap-ha)
TASK [common : Kubesphere | Creating manifests] ********************************
skipping: [localhost] => (item={'name': 'custom-values-openldap', 'file': 'custom-values-openldap.yaml'})
TASK [common : Kubesphere | Check old openldap status] *************************
skipping: [localhost]
TASK [common : KubeSphere | Shutdown ks-account] *******************************
skipping: [localhost]
TASK [common : Kubesphere | Delete and backup old openldap svc] ****************
skipping: [localhost]
TASK [common : Kubesphere | Check openldap] ************************************
skipping: [localhost]
TASK [common : Kubesphere | Deploy openldap] ***********************************
skipping: [localhost]
TASK [common : Kubesphere | Load old openldap data] ****************************
skipping: [localhost]
TASK [common : Kubesphere | Check openldap-ha status] **************************
skipping: [localhost]
TASK [common : Kubesphere | Get openldap-ha pod list] **************************
skipping: [localhost]
TASK [common : Kubesphere | Get old openldap data] *****************************
skipping: [localhost]
TASK [common : Kubesphere | Migrating openldap data] ***************************
skipping: [localhost]
TASK [common : Kubesphere | Disable old openldap] ******************************
skipping: [localhost]
TASK [common : Kubesphere | Restart openldap] **********************************
skipping: [localhost]
TASK [common : KubeSphere | Restarting ks-account] *****************************
skipping: [localhost]
TASK [common : Kubesphere | import openldap status] ****************************
skipping: [localhost]
TASK [common : Kubesphere | Check ha-redis] ************************************
skipping: [localhost]
TASK [common : Kubesphere | Getting redis installation files] ******************
skipping: [localhost] => (item=redis-ha)
TASK [common : Kubesphere | Creating manifests] ********************************
skipping: [localhost] => (item={'name': 'custom-values-redis', 'file': 'custom-values-redis.yaml'})
TASK [common : Kubesphere | Check old redis status] ****************************
skipping: [localhost]
TASK [common : Kubesphere | Delete and backup old redis svc] *******************
skipping: [localhost]
TASK [common : Kubesphere | Deploying redis] ***********************************
skipping: [localhost]
TASK [common : Kubesphere | Getting redis PodIp] *******************************
skipping: [localhost]
TASK [common : Kubesphere | Creating redis migration script] *******************
skipping: [localhost] => (item={'path': '/etc/kubesphere', 'file': 'redisMigrate.py'})
TASK [common : Kubesphere | Check redis-ha status] *****************************
skipping: [localhost]
TASK [common : ks-logging | Migrating redis data] ******************************
skipping: [localhost]
TASK [common : Kubesphere | Disable old redis] *********************************
skipping: [localhost]
TASK [common : Kubesphere | Deploying redis] ***********************************
skipping: [localhost] => (item=redis.yaml)
TASK [common : Kubesphere | import redis status] *******************************
skipping: [localhost]
TASK [common : Kubesphere | Getting openldap installation files] ***************
skipping: [localhost] => (item=openldap-ha)
TASK [common : Kubesphere | Creating manifests] ********************************
skipping: [localhost] => (item={'name': 'custom-values-openldap', 'file': 'custom-values-openldap.yaml'})
TASK [common : Kubesphere | Check old openldap status] *************************
skipping: [localhost]
TASK [common : KubeSphere | Shutdown ks-account] *******************************
skipping: [localhost]
TASK [common : Kubesphere | Delete and backup old openldap svc] ****************
skipping: [localhost]
TASK [common : Kubesphere | Check openldap] ************************************
skipping: [localhost]
TASK [common : Kubesphere | Deploy openldap] ***********************************
skipping: [localhost]
TASK [common : Kubesphere | Load old openldap data] ****************************
skipping: [localhost]
TASK [common : Kubesphere | Check openldap-ha status] **************************
skipping: [localhost]
TASK [common : Kubesphere | Get openldap-ha pod list] **************************
skipping: [localhost]
TASK [common : Kubesphere | Get old openldap data] *****************************
skipping: [localhost]
TASK [common : Kubesphere | Migrating openldap data] ***************************
skipping: [localhost]
TASK [common : Kubesphere | Disable old openldap] ******************************
skipping: [localhost]
TASK [common : Kubesphere | Restart openldap] **********************************
skipping: [localhost]
TASK [common : KubeSphere | Restarting ks-account] *****************************
skipping: [localhost]
TASK [common : Kubesphere | import openldap status] ****************************
skipping: [localhost]
TASK [common : Kubesphere | Getting minio installation files] ******************
skipping: [localhost] => (item=minio-ha)
TASK [common : Kubesphere | Creating manifests] ********************************
skipping: [localhost] => (item={'name': 'custom-values-minio', 'file': 'custom-values-minio.yaml'})
TASK [common : Kubesphere | Check minio] ***************************************
skipping: [localhost]
TASK [common : Kubesphere | Deploy minio] **************************************
skipping: [localhost]
TASK [common : debug] **********************************************************
skipping: [localhost]
TASK [common : fail] ***********************************************************
skipping: [localhost]
TASK [common : Kubesphere | create minio config directory] *********************
skipping: [localhost]
TASK [common : Kubesphere | Creating common component manifests] ***************
skipping: [localhost] => (item={'path': '/root/.config/rclone', 'file': 'rclone.conf'})
TASK [common : include_tasks] **************************************************
skipping: [localhost] => (item=helm)
skipping: [localhost] => (item=vmbased)
TASK [common : Kubesphere | import minio status] *******************************
skipping: [localhost]
TASK [common : Kubesphere | Deploying common component] ************************
skipping: [localhost] => (item=mysql.yaml)
TASK [common : Kubesphere | import mysql status] *******************************
skipping: [localhost]
TASK [common : Kubesphere | Deploying common component] ************************
changed: [localhost] => (item=etcd.yaml)
TASK [common : Kubesphere | Getting elasticsearch and curator installation files] ***
changed: [localhost]
TASK [common : Kubesphere | Creating custom manifests] *************************
changed: [localhost] => (item={'name': 'custom-values-elasticsearch', 'file': 'custom-values-elasticsearch.yaml'})
changed: [localhost] => (item={'name': 'custom-values-elasticsearch-curator', 'file': 'custom-values-elasticsearch-curator.yaml'})
TASK [common : Kubesphere | Check elasticsearch data StatefulSet] **************
changed: [localhost]
TASK [common : Kubesphere | Check elasticsearch storageclass] ******************
changed: [localhost]
TASK [common : Kubesphere | Comment elasticsearch storageclass parameter] ******
skipping: [localhost]
TASK [common : KubeSphere | Check internal es] *********************************
changed: [localhost]
TASK [common : Kubesphere | Deploy elasticsearch-logging] **********************
skipping: [localhost]
TASK [common : Kubesphere | Get PersistentVolume Name] *************************
skipping: [localhost]
TASK [common : Kubesphere | Patch PersistentVolume (persistentVolumeReclaimPolicy)] ***
skipping: [localhost]
TASK [common : Kubesphere | Delete elasticsearch] ******************************
skipping: [localhost]
TASK [common : Kubesphere | Waiting for seconds] *******************************
skipping: [localhost]
TASK [common : Kubesphere | Deploy elasticsearch-logging] **********************
skipping: [localhost]
TASK [common : Kubesphere | import es status] **********************************
skipping: [localhost]
TASK [common : Kubesphere | Deploy elasticsearch-logging-curator] **************
changed: [localhost]
TASK [common : Kubesphere | Getting elasticsearch and curator installation files] ***
skipping: [localhost]
TASK [common : Kubesphere | Creating custom manifests] *************************
skipping: [localhost] => (item={'path': 'fluentbit', 'file': 'custom-fluentbit-fluentBit.yaml'})
skipping: [localhost] => (item={'path': 'init', 'file': 'custom-fluentbit-operator-deployment.yaml'})
skipping: [localhost] => (item={'path': 'migrator', 'file': 'custom-migrator-job.yaml'})
TASK [common : Kubesphere | Checking fluentbit-version] ************************
skipping: [localhost]
TASK [common : Kubesphere | Backup old fluentbit crd] **************************
skipping: [localhost]
TASK [common : Kubesphere | Deleting old fluentbit operator] *******************
skipping: [localhost] => (item={'type': 'deploy', 'name': 'logging-fluentbit-operator'})
skipping: [localhost] => (item={'type': 'fluentbits.logging.kubesphere.io', 'name': 'fluent-bit'})
skipping: [localhost] => (item={'type': 'ds', 'name': 'fluent-bit'})
skipping: [localhost] => (item={'type': 'crd', 'name': 'fluentbits.logging.kubesphere.io'})
TASK [common : Kubesphere | Prepare fluentbit operator setup] ******************
skipping: [localhost]
TASK [common : Kubesphere | Migrate fluentbit operator old config] *************
skipping: [localhost]
TASK [common : Kubesphere | Deploy new fluentbit operator] *********************
skipping: [localhost]
TASK [common : Kubesphere | import fluentbit status] ***************************
skipping: [localhost]
TASK [common : Setting persistentVolumeReclaimPolicy (mysql)] ******************
skipping: [localhost]
TASK [common : Setting persistentVolumeReclaimPolicy (etcd)] *******************
skipping: [localhost]
PLAY RECAP *********************************************************************
localhost : ok=44 changed=32 unreachable=0 failed=0 skipped=113 rescued=0 ignored=1
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match 'all'
PLAY [localhost] ***************************************************************
TASK [download : include_tasks] ************************************************
skipping: [localhost]
TASK [download : Download items] ***********************************************
skipping: [localhost]
TASK [download : Sync container] ***********************************************
skipping: [localhost]
TASK [kubesphere-defaults : Configure defaults] ********************************
ok: [localhost] => {
"msg": "Check roles/kubesphere-defaults/defaults/main.yml"
}
TASK [ks-core/prepare : KubeSphere | Check core components (1)] ****************
skipping: [localhost]
TASK [ks-core/prepare : KubeSphere | Check core components (2)] ****************
skipping: [localhost]
TASK [ks-core/prepare : KubeSphere | Check core components (3)] ****************
skipping: [localhost]
TASK [ks-core/prepare : KubeSphere | Check core components (4)] ****************
skipping: [localhost]
TASK [ks-core/prepare : KubeSphere | Update ks-core status] ********************
skipping: [localhost]
TASK [ks-core/prepare : set_fact] **********************************************
skipping: [localhost]
TASK [ks-core/prepare : KubeSphere | Create KubeSphere dir] ********************
skipping: [localhost]
TASK [ks-core/prepare : KubeSphere | Getting installation init files] **********
skipping: [localhost] => (item=ks-init)
TASK [ks-core/prepare : Kubesphere | Checking account init] ********************
skipping: [localhost]
TASK [ks-core/prepare : Kubesphere | Init account] *****************************
skipping: [localhost]
TASK [ks-core/prepare : KubeSphere | Init KubeSphere] **************************
skipping: [localhost] => (item=iam-accounts.yaml)
skipping: [localhost] => (item=webhook-secret.yaml)
skipping: [localhost] => (item=users.iam.kubesphere.io.yaml)
TASK [ks-core/prepare : KubeSphere | Getting controls-system file] *************
skipping: [localhost] => (item={'name': 'kubesphere-controls-system', 'file': 'kubesphere-controls-system.yaml'})
TASK [ks-core/prepare : KubeSphere | Installing controls-system] ***************
skipping: [localhost]
TASK [ks-core/prepare : KubeSphere | Generate kubeconfig-admin] ****************
skipping: [localhost]
TASK [ks-core/init-token : KubeSphere | Create KubeSphere dir] *****************
ok: [localhost]
TASK [ks-core/init-token : KubeSphere | Getting installation init files] *******
changed: [localhost] => (item=jwt-script)
TASK [ks-core/init-token : KubeSphere | Creating KubeSphere Secret] ************
changed: [localhost]
TASK [ks-core/init-token : KubeSphere | Creating KubeSphere Secret] ************
ok: [localhost]
TASK [ks-core/init-token : KubeSphere | Creating KubeSphere Secret] ************
skipping: [localhost]
TASK [ks-core/init-token : KubeSphere | Enable Token Script] *******************
changed: [localhost]
TASK [ks-core/init-token : KubeSphere | Getting KS Token] **********************
changed: [localhost]
TASK [ks-core/init-token : Kubesphere | Checking kubesphere secrets] ***********
changed: [localhost]
TASK [ks-core/init-token : Kubesphere | Delete kubesphere secret] **************
skipping: [localhost]
TASK [ks-core/init-token : KubeSphere | Create components token] ***************
changed: [localhost]
TASK [ks-core/ks-core : KubeSphere | Getting kubernetes version] ***************
skipping: [localhost]
TASK [ks-core/ks-core : KubeSphere | Setting kubernetes version] ***************
skipping: [localhost]
TASK [ks-core/ks-core : KubeSphere | Getting kubernetes master num] ************
skipping: [localhost]
TASK [ks-core/ks-core : KubeSphere | Setting master num] ***********************
skipping: [localhost]
TASK [ks-core/ks-core : ks-console | Checking ks-console svc] ******************
skipping: [localhost]
TASK [ks-core/ks-core : ks-console | Getting ks-console svc port] **************
skipping: [localhost]
TASK [ks-core/ks-core : ks-console | Setting console_port] *********************
skipping: [localhost]
TASK [ks-core/ks-core : KubeSphere | Getting Ingress installation files] *******
skipping: [localhost] => (item=ingress)
skipping: [localhost] => (item=ks-apiserver)
skipping: [localhost] => (item=ks-console)
skipping: [localhost] => (item=ks-controller-manager)
TASK [ks-core/ks-core : KubeSphere | Creating manifests] ***********************
skipping: [localhost] => (item={'path': 'ingress', 'file': 'ingress-controller.yaml', 'type': 'config'})
skipping: [localhost] => (item={'path': 'ks-apiserver', 'file': 'ks-apiserver.yml', 'type': 'deploy'})
skipping: [localhost] => (item={'path': 'ks-controller-manager', 'file': 'ks-controller-manager.yaml', 'type': 'deploy'})
skipping: [localhost] => (item={'path': 'ks-console', 'file': 'ks-console-config.yml', 'type': 'config'})
skipping: [localhost] => (item={'path': 'ks-console', 'file': 'ks-console-deployment.yml', 'type': 'deploy'})
skipping: [localhost] => (item={'path': 'ks-console', 'file': 'ks-console-svc.yml', 'type': 'svc'})
skipping: [localhost] => (item={'path': 'ks-console', 'file': 'sample-bookinfo-configmap.yaml', 'type': 'config'})
TASK [ks-core/ks-core : KubeSphere | Delete Ingress-controller configmap] ******
skipping: [localhost]
TASK [ks-core/ks-core : KubeSphere | Creating Ingress-controller configmap] ****
skipping: [localhost]
TASK [ks-core/ks-core : KubeSphere | Creating ks-core] *************************
skipping: [localhost] => (item={'path': 'ks-apiserver', 'file': 'ks-apiserver.yml'})
skipping: [localhost] => (item={'path': 'ks-controller-manager', 'file': 'ks-controller-manager.yaml'})
skipping: [localhost] => (item={'path': 'ks-console', 'file': 'ks-console-config.yml'})
skipping: [localhost] => (item={'path': 'ks-console', 'file': 'sample-bookinfo-configmap.yaml'})
skipping: [localhost] => (item={'path': 'ks-console', 'file': 'ks-console-deployment.yml'})
TASK [ks-core/ks-core : KubeSphere | Check ks-console svc] *********************
skipping: [localhost]
TASK [ks-core/ks-core : KubeSphere | Creating ks-console svc] ******************
skipping: [localhost] => (item={'path': 'ks-console', 'file': 'ks-console-svc.yml'})
TASK [ks-core/ks-core : KubeSphere | Patch ks-console svc] *********************
skipping: [localhost]
TASK [ks-core/ks-core : KubeSphere | import ks-core status] ********************
skipping: [localhost]
PLAY RECAP *********************************************************************
localhost : ok=9 changed=6 unreachable=0 failed=0 skipped=35 rescued=0 ignored=0
Start installing monitoring
Start installing multicluster
Start installing alerting
Start installing devops
Start installing logging
Start installing notification
Start installing openpitrix
Start installing servicemesh
**************************************************
task monitoring status is running
task multicluster status is successful
task alerting status is running
task devops status is successful
task logging status is successful
task notification status is successful
task openpitrix status is successful
task servicemesh status is successful
total: 8 completed:6
**************************************************
task monitoring status is running
task multicluster status is successful
task alerting status is successful
task devops status is successful
task logging status is successful
task notification status is successful
task openpitrix status is successful
task servicemesh status is successful
total: 8 completed:7
**************************************************
task monitoring status is running
task multicluster status is successful
task alerting status is successful
task devops status is successful
task logging status is successful
task notification status is successful
task openpitrix status is successful
task servicemesh status is successful
total: 8 completed:7
**************************************************
task monitoring status is running
task multicluster status is successful
task alerting status is successful
task devops status is successful
task logging status is successful
task notification status is successful
task openpitrix status is successful
task servicemesh status is successful
total: 8 completed:7
**************************************************
task monitoring status is running
task multicluster status is successful
task alerting status is successful
task devops status is successful
task logging status is successful
task notification status is successful
task openpitrix status is successful
task servicemesh status is successful
total: 8 completed:7
**************************************************
task monitoring status is running
task multicluster status is successful
task alerting status is successful
task devops status is successful
task logging status is successful
task notification status is successful
task openpitrix status is successful
task servicemesh status is successful
total: 8 completed:7
**************************************************
task monitoring status is successful
task multicluster status is successful
task alerting status is successful
task devops status is successful
task logging status is successful
task notification status is successful
task openpitrix status is successful
task servicemesh status is successful
total: 8 completed:8
**************************************************
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match 'all'
PLAY [localhost] ***************************************************************
TASK [download : include_tasks] ************************************************
skipping: [localhost]
TASK [download : Download items] ***********************************************
skipping: [localhost]
TASK [download : Sync container] ***********************************************
skipping: [localhost]
TASK [kubesphere-defaults : Configure defaults] ********************************
ok: [localhost] => {
"msg": "Check roles/kubesphere-defaults/defaults/main.yml"
}
TASK [ks-migration : KubeSphere | Check core components (1)] *******************
changed: [localhost]
TASK [ks-migration : KubeSphere | Check core components (2)] *******************
changed: [localhost]
TASK [ks-migration : KubeSphere | Check core components (3)] *******************
changed: [localhost]
TASK [ks-migration : KubeSphere | Check core components (4)] *******************
changed: [localhost]
TASK [ks-migration : KubeSphere | Creating manifests] **************************
changed: [localhost] => (item={'path': 'migration', 'file': 'ks-upgrade.yaml'})
changed: [localhost] => (item={'path': 'migration', 'file': 'ks-devops-migration.yaml'})
TASK [ks-migration : KubeSphere | Create migration job] ************************
\", TerminationGracePeriodSeconds:(*int64)(0xc009047bc8), ActiveDeadlineSeconds:(*int64)(nil), DNSPolicy:\"ClusterFirst\", NodeSelector:map[string]string(nil), ServiceAccountName:\"ks-installer\", AutomountServiceAccountToken:(*bool)(nil), NodeName:\"\", SecurityContext:(*core.PodSecurityContext)(0xc01c5664d0), ImagePullSecrets:[]core.LocalObjectReference(nil), Hostname:\"\", Subdomain:\"\", Affinity:(*core.Affinity)(nil), SchedulerName:\"default-scheduler\", Tolerations:[]core.Toleration(nil), HostAliases:[]core.HostAlias(nil), PriorityClassName:\"\", Priority:(*int32)(nil), PreemptionPolicy:(*core.PreemptionPolicy)(nil), DNSConfig:(*core.PodDNSConfig)(nil), ReadinessGates:[]core.PodReadinessGate(nil), RuntimeClassName:(*string)(nil), Overhead:core.ResourceList(nil), EnableServiceLinks:(*bool)(nil), TopologySpreadConstraints:[]core.TopologySpreadConstraint(nil)}}: field is immutable", "stderr_lines": ["The Job \"ks-upgrade\" is invalid: spec.template: Invalid value: core.PodTemplateSpec{ObjectMeta:v1.ObjectMeta{Name:\"\", GenerateName:\"\", Namespace:\"\", SelfLink:\"\", UID:\"\", ResourceVersion:\"\", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string{\"controller-uid\":\"46457870-9b75-442d-9be2-8fc941f147aa\", \"job-name\":\"ks-upgrade\"}, Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ClusterName:\"\", ManagedFields:[]v1.ManagedFieldsEntry(nil)}, Spec:core.PodSpec{Volumes:[]core.Volume(nil), InitContainers:[]core.Container(nil), Containers:[]core.Container{core.Container{Name:\"ks-upgrade\", Image:\"kubesphere/ks-upgrade:v3.0.0\", Command:[]string{\"ks-upgrade\", \"--logtostderr\", \"--v=4\"}, Args:[]string(nil), WorkingDir:\"\", Ports:[]core.ContainerPort(nil), EnvFrom:[]core.EnvFromSource(nil), Env:[]core.EnvVar(nil), Resources:core.ResourceRequirements{Lfatal: [localhost]: FAILED! => {"changed": true, "cmd": "/usr/local/bin/kubectl apply -f /kubesphere/kubesphere/ks-upgrade.yaml\n", "delta": "0:00:00.444712", "end": "2020-09-29 10:45:33.105692", "msg": "non-zero return code", "rc": 1, "start": "2020-09-29 10:45:32.660980", "stderr": "The Job \"ks-upgrade\" is invalid: spec.template: Invalid value: core.PodTemplateSpec{ObjectMeta:v1.ObjectMeta{Name:\"\", GenerateName:\"\", Namespace:\"\", SelfLink:\"\", UID:\"\", ResourceVersion:\"\", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string{\"controller-uid\":\"46457870-9b75-442d-9be2-8fc941f147aa\", \"job-name\":\"ks-upgrade\"}, Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ClusterName:\"\", ManagedFields:[]v1.ManagedFieldsEntry(nil)}, Spec:core.PodSpec{Volumes:[]core.Volume(nil), InitContainers:[]core.Container(nil), Containers:[]core.Container{core.Container{Name:\"ks-upgrade\", Image:\"kubesphere/ks-upgrade:v3.0.0\", Command:[]string{\"ks-upgrade\", \"--logtostderr\", \"--v=4\"}, Args:[]string(nil), WorkingDir:\"\", Ports:[]core.ContainerPort(nil), EnvFrom:[]core.EnvFromSource(nil), Env:[]core.EnvVar(nil), Resources:core.ResourceRequirements{Limits:core.ResourceList(nil), Requests:core.ResourceList(nil)}, VolumeMounts:[]core.VolumeMount(nil), VolumeDevices:[]core.VolumeDevice(nil), LivenessProbe:(*core.Probe)(nil), ReadinessProbe:(*core.Probe)(nil), StartupProbe:(*core.Probe)(nil), Lifecycle:(*core.Lifecycle)(nil), TerminationMessagePath:\"/dev/termination-log\", TerminationMessagePolicy:\"File\", ImagePullPolicy:\"Always\", SecurityContext:(*core.SecurityContext)(nil), Stdin:false, StdinOnce:false, TTY:false}}, EphemeralContainers:[]core.EphemeralContainer(nil), RestartPolicy:\"OnFailure\", TerminationGracePeriodSeconds:(*int64)(0xc009047bc8), ActiveDeadlineSeconds:(*int64)(nil), DNSPolicy:\"ClusterFirst\", NodeSelector:map[string]string(nil), ServiceAccountName:\"ks-installer\", AutomountServiceAccountToken:(*bool)(nil), NodeName:\"\", SecurityContext:(*core.PodSecurityContext)(0xc01c5664d0), ImagePullSecrets:[]core.LocalObjectReference(nil), Hostname:\"\", Subdomain:\"\", Affinity:(*core.Affinity)(nil), SchedulerName:\"default-scheduler\", Tolerations:[]core.Toleration(nil), HostAliases:[]core.HostAlias(nil), PriorityClassName:\"\", Priority:(*int32)(nil), PreemptionPolicy:(*core.PreemptionPolicy)(nil), DNSConfig:(*core.PodDNSConfig)(nil), ReadinessGates:[]core.PodReadinessGate(nil), RuntimeClassName:(*string)(nil), Overhead:core.ResourceList(nil), EnableServiceLinks:(*bool)(nil), TopologySpreadConstraints:[]core.TopologySpreadConstraint(nil)}}: field is immutable", "stderr_lines": ["The Job \"ks-upgrade\" is invalid: spec.template: Invalid value: core.PodTemplateSpec{ObjectMeta:v1.ObjectMeta{Name:\"\", GenerateName:\"\", Namespace:\"\", SelfLink:\"\", UID:\"\", ResourceVersion:\"\", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string{\"controller-uid\":\"46457870-9b75-442d-9be2-8fc941f147aa\", \"job-name\":\"ks-upgrade\"}, Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ClusterName:\"\", ManagedFields:[]v1.ManagedFieldsEntry(nil)}, Spec:core.PodSpec{Volumes:[]core.Volume(nil), InitContainers:[]core.Container(nil), Containers:[]core.Container{core.Container{Name:\"ks-upgrade\", Image:\"kubesphere/ks-upgrade:v3.0.0\", Command:[]string{\"ks-upgrade\", \"--logtostderr\", \"--v=4\"}, Args:[]string(nil), WorkingDir:\"\", Ports:[]core.ContainerPort(nil), EnvFrom:[]core.EnvFromSource(nil), Env:[]core.EnvVar(nil), Resources:core.ResourceRequirements{Limits:core.ResourceList(nil), Requests:core.ResourceList(nil)}, VolumeMounts:[]core.VolumeMount(nil), VolumeDevices:[]core.VolumeDevice(nil), LivenessProbe:(*core.Probe)(nil), ReadinessProbe:(*core.Probe)(nil), StartupProbe:(*core.Probe)(nil), Lifecycle:(*core.Lifecycle)(nil), TerminationMessagePath:\"/dev/termination-log\", TerminationMessagePolicy:\"File\", ImagePullPolicy:\"Always\", SecurityContext:(*core.SecurityContext)(nil), Stdin:false, StdinOnce:false, TTY:false}}, EphemeralContainers:[]core.EphemeralContainer(nil), RestartPolicy:\"OnFailure\", TerminationGracePeriodSeconds:(*int64)(0xc009047bc8), ActiveDeadlineSeconds:(*int64)(nil), DNSPolicy:\"ClusterFirst\", NodeSelector:map[string]string(nil), ServiceAccountName:\"ks-installer\", AutomountServiceAccountToken:(*bool)(nil), NodeName:\"\", SecurityContext:(*core.PodSecurityContext)(0xc01c5664d0), ImagePullSecrets:[]core.LocalObjectReference(nil), Hostname:\"\", Subdomain:\"\", Affinity:(*core.Affinity)(nil), SchedulerName:\"default-scheduler\", Tolerations:[]core.Toleration(nil), HostAliases:[]core.HostAlias(nil), PriorityClassName:\"\", Priority:(*int32)(nil), PreemptionPolicy:(*core.PreemptionPolicy)(nil), DNSConfig:(*core.PodDNSConfig)(nil), ReadinessGates:[]core.PodReadinessGate(nil), RuntimeClassName:(*string)(nil), Overhead:core.ResourceList(nil), EnableServiceLinks:(*bool)(nil), TopologySpreadConstraints:[]core.TopologySpreadConstraint(nil)}}: field is immutable"], "stdout": "", "stdout_lines": []}
PLAY RECAP *********************************************************************
localhost : ok=6 changed=5 unreachable=0 failed=1 skipped=3 rescued=0 ignored=0
2020-10-01T00:00:00+08:00 INFO : Running schedule manager entry '0 0 1 * *' ...
2020-10-01T00:00:02+08:00 INFO : TASK_RUN HookRun@SCHEDULE kubesphere/schedule.sh
2020-10-01T00:00:02+08:00 INFO : Running hook 'kubesphere/schedule.sh' binding 'SCHEDULE' ...
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match 'all'
PLAY [localhost] ***************************************************************
TASK [download : include_tasks] ************************************************
skipping: [localhost]
TASK [download : Download items] ***********************************************
skipping: [localhost]
TASK [download : Sync container] ***********************************************
skipping: [localhost]
TASK [kubesphere-defaults : Configure defaults] ********************************
ok: [localhost] => {
"msg": "Check roles/kubesphere-defaults/defaults/main.yml"
}
TASK [telemetry : KubeSphere | Waiting for ks-console] *************************
changed: [localhost]
TASK [telemetry : KubeSphere | Waiting for ks-apiserver] ***********************
changed: [localhost]
TASK [telemetry : get k8s version] *********************************************
changed: [localhost]
TASK [telemetry : get ks version] **********************************************
changed: [localhost]
TASK [telemetry : get firstip os] **********************************************
changed: [localhost]
TASK [telemetry : get machineID] ***********************************************
changed: [localhost]
TASK [telemetry : get module] **************************************************
changed: [localhost]
TASK [telemetry : get kube-system time] ****************************************
changed: [localhost]
TASK [telemetry : get kubesphere-system time] **********************************
changed: [localhost]
TASK [telemetry : yes/no HA] ***************************************************
changed: [localhost]
TASK [telemetry : get nodecount] ***********************************************
changed: [localhost]
TASK [telemetry : get clusterId by cm of kubesphere-config] ********************
changed: [localhost]
TASK [telemetry : KubeSphere | Creating KubeSphere clusterId] ******************
skipping: [localhost]
TASK [telemetry : clusterId patch to cm of kubesphere-config] ******************
skipping: [localhost]
TASK [telemetry : KubeSphere | KubeSphere clusterId] ***************************
skipping: [localhost]
TASK [telemetry : get clusterId] ***********************************************
changed: [localhost]
TASK [telemetry : KubeSphere | KubeSphere clusterId] ***************************
ok: [localhost]
TASK [telemetry : clusterId add ks] ********************************************
changed: [localhost]
TASK [telemetry : get multicluster status] *************************************
changed: [localhost]
TASK [telemetry : get essential information] ***********************************
ok: [localhost]
PLAY RECAP *********************************************************************
localhost : ok=18 changed=15 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0
successsful!
2020-11-01T00:00:00+08:00 INFO : Running schedule manager entry '0 0 1 * *' ...
2020-11-01T00:00:00+08:00 INFO : TASK_RUN HookRun@SCHEDULE kubesphere/schedule.sh
2020-11-01T00:00:00+08:00 INFO : Running hook 'kubesphere/schedule.sh' binding 'SCHEDULE' ...
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match 'all'
PLAY [localhost] ***************************************************************
TASK [download : include_tasks] ************************************************
skipping: [localhost]
TASK [download : Download items] ***********************************************
skipping: [localhost]
TASK [download : Sync container] ***********************************************
skipping: [localhost]
TASK [kubesphere-defaults : Configure defaults] ********************************
ok: [localhost] => {
"msg": "Check roles/kubesphere-defaults/defaults/main.yml"
}
TASK [telemetry : KubeSphere | Waiting for ks-console] *************************
changed: [localhost]
TASK [telemetry : KubeSphere | Waiting for ks-apiserver] ***********************
changed: [localhost]
TASK [telemetry : get k8s version] *********************************************
changed: [localhost]
TASK [telemetry : get ks version] **********************************************
changed: [localhost]
TASK [telemetry : get firstip os] **********************************************
changed: [localhost]
TASK [telemetry : get machineID] ***********************************************
changed: [localhost]
TASK [telemetry : get module] **************************************************
changed: [localhost]
TASK [telemetry : get kube-system time] ****************************************
changed: [localhost]
TASK [telemetry : get kubesphere-system time] **********************************
changed: [localhost]
TASK [telemetry : yes/no HA] ***************************************************
changed: [localhost]
TASK [telemetry : get nodecount] ***********************************************
changed: [localhost]
TASK [telemetry : get clusterId by cm of kubesphere-config] ********************
changed: [localhost]
TASK [telemetry : KubeSphere | Creating KubeSphere clusterId] ******************
skipping: [localhost]
TASK [telemetry : clusterId patch to cm of kubesphere-config] ******************
skipping: [localhost]
TASK [telemetry : KubeSphere | KubeSphere clusterId] ***************************
skipping: [localhost]
TASK [telemetry : get clusterId] ***********************************************
changed: [localhost]
TASK [telemetry : KubeSphere | KubeSphere clusterId] ***************************
ok: [localhost]
TASK [telemetry : clusterId add ks] ********************************************
changed: [localhost]
TASK [telemetry : get multicluster status] *************************************
changed: [localhost]
TASK [telemetry : get essential information] ***********************************
fatal: [localhost]: FAILED! => {"changed": false, "content": "", "elapsed": 5, "msg": "Status code was -1 and not [200]: Request failed: <urlopen error [Errno 99] Address not available>", "redirected": false, "status": -1, "url": "https://kubesphere.io/log/?k8s=v1.17.9&ks=v3.0.0&ha=3&c=7&K8st=65d&Kst=64d&os=Ubuntu&mID=324059bf7fbc4e52ad9f25fe5a4b4ed3&clusterId=27b20d34-f751-11ea-87ee-becd9fc6a0d8&mod=\"alerting-core-devops-fluentbit-logging-metricsServer-minio-monitoring-mysql-notification-openldap-openpitrix-redis-servicemesh\"&multi=\"none\""}
...ignoring
PLAY RECAP *********************************************************************
localhost : ok=18 changed=15 unreachable=0 failed=0 skipped=6 rescued=0 ignored=1
successsful!
root@uat-master01:~/kubesphere-all-v3.0.0-offline-linux-amd64# kubectl logs ks-installer-85854b8c8-486t9 -n kubesphere-system