\u89e3\u51b3\u65b9\u6cd5\uff1a\u4fee\u6539\u914d\u7f6e\u6587\u4ef6roles\/ks-core\/prepare\/templates\/ks-account-init.yaml.j2\u6587\u4ef6\uff0c\u5728 openldap \u8fd9\u4e2a Deployment \u4e0b\u9762\u5bb9\u5668\u4e2d\u6dfb\u52a0\u542f\u52a8\u53c2\u6570--copy-service<\/p>\n
\r\n......\r\nimage: {{ openldap_repo }}:{{ openldap_tag }}\r\nimagePullPolicy: IfNotPresent\r\nargs: # \u6dfb\u52a0\u8be5\u542f\u52a8\u53c2\u6570\r\n- --copy-service \r\nname: openldap\r\n......\r\n<\/pre>\n\u95ee\u98982\uff1a\u5982\u679c\u73b0\u6709\u96c6\u7fa4\u4e2d\u5df2\u7ecf\u5b89\u88c5\u6709 metrics_server\uff0c\u9700\u8981\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u5c06 metrics_server_enable \u8bbe\u7f6e\u4e3a False<\/p>\n
\u95ee\u98983\uff1a\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u5361\u6b7b\u5728Waitting for ks-sonarqube port to become open\u90e8\u5206\uff0c\u8282\u70b9\u4e0a\u901a\u8fc7 NodePort \u5df2\u7ecf\u53ef\u4ee5\u6b63\u5e38\u8bbf\u95ee sonarqube \uff0c\u8be5\u95ee\u9898\u6ca1\u6709\u89e3\u51b3\uff0c\u7531\u4e8e\u662f\u4e00\u4e2a\u4e0d\u5f71\u54cd\u5168\u5c40\u5b89\u88c5\u7684\u4e00\u4e2a\u64cd\u4f5c\uff0c\u6240\u4ee5\u540c\u6837\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u5c06 sonarqube_enable \u8bbe\u7f6e\u4e3a False<\/p>\n
\u95ee\u98984\uff1a\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d istio \u5b89\u88c5\u4e0d\u4e0a\uff0c\u7531\u4e8e\u6211\u5f53\u524d\u7684\u96c6\u7fa4\u8d44\u6e90\u4e0d\u662f\u5f88\u8db3\uff0c\u6240\u4ee5\u4e5f\u4e34\u65f6\u53d6\u6d88\u6389 istio \u7684\u5b89\u88c5\uff0c\u540e\u7eed\u5728\u5f00\u542f istio \u7684\u652f\u6301\u3002<\/p>\n
\u6700\u7ec8\u7528\u4e8e\u5b89\u88c5 KubeSphere \u7684\u914d\u7f6e\u6587\u4ef6\u5982\u4e0b\u6240\u793a\uff1a(deploy\/kubesphere.yaml)<\/p>\n
\r\n---\r\napiVersion: v1\r\ndata:\r\n ks-config.yaml: |\r\n kube_apiserver_host: 10.151.30.11:6443\r\n etcd_tls_enable: True\r\n etcd_endpoint_ips: 10.151.30.11\r\n disableMultiLogin: True\r\n elk_prefix: logstash\r\n metrics_server_enable: False\r\n sonarqube_enable: False\r\n istio_enable: False\r\nkind: ConfigMap\r\nmetadata:\r\n name: kubesphere-config\r\n namespace: kubesphere-system\r\n......\r\n<\/pre>\n\u53ea\u9700\u8981\u4fee\u6539 ConfigMap \u7684\u503c\u5373\u53ef\uff0c\u5176\u4e2d kube_apiserver_host \u5c31\u662f\u73b0\u6709\u96c6\u7fa4\u7684 APIServer \u5730\u5740\uff0cetcd_endpoint_ips \u5c31\u662f etcd \u7684\u6240\u5728\u8282\u70b9 IP\uff0c\u9ed8\u8ba4\u7aef\u53e3\u4e3a 2379\uff0c\u5982\u679c\u4f60\u662f\u96c6\u7fa4\u6a21\u5f0f etcd\uff0c\u8fd9\u91cc\u53ef\u4ee5\u586b\u5199\u591a\u4e2a\u8282\u70b9 IP\uff0c\u4e2d\u95f4\u7528,\u9694\u5f00\uff0c\u4e0b\u9762\u5c31\u662f\u4e0d\u9700\u8981\u5b89\u88c5\u7684\u7ec4\u4ef6\u8bbe\u7f6e\u4e3a False\u3002<\/p>\n
\u5230\u8fd9\u91cc\u6267\u884c\u5b89\u88c5\u547d\u4ee4\u5373\u53ef\uff1a<\/p>\n
\r\n$ kubectl apply -f deploy\/kubesphere.yaml\r\n$ kubectl get pods -n kubesphere-system\r\nNAME READY STATUS RESTARTS AGE\r\nks-account-575d4fd8f-r5476 1\/1 Running 0 44m\r\nks-apigateway-5c56f79976-jxmd4 1\/1 Running 0 44m\r\nks-apiserver-5d56bc8976-678hj 1\/1 Running 0 41m\r\nks-console-75b6cb84c-ldsn7 1\/1 Running 0 42m\r\nks-console-75b6cb84c-pzqcx 1\/1 Running 0 42m\r\nks-controller-manager-78bfd56fbf-dtcg2 1\/1 Running 0 43m\r\nks-docs-65bd89559b-58lpp 1\/1 Running 0 3h16m\r\nkubesphere-installer-x7q8z 0\/1 Completed 0 45m\r\nopenldap-5bd67c84c6-gw8f5 1\/1 Running 0 114m\r\nredis-6cf6fc98b5-nsqfn 1\/1 Running 0 3h19m\r\n<\/pre>\n\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u4f1a\u56e0\u4e3a\u62c9\u53d6\u955c\u50cf\u8fc7\u6162\u5bfc\u81f4\u5b89\u88c5\u6821\u9a8c\u5931\u8d25\uff0c\u8fd9\u79cd\u60c5\u51b5\u6211\u4eec\u53ef\u4ee5\u5148\u624b\u52a8\u5728\u8282\u70b9\u4e0a\u62c9\u53d6\u955c\u50cf\uff0c\u7136\u540e\u518d\u91cd\u65b0\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u7528\u4e8e\u5b89\u88c5\u7684 Job \u5373\u53ef\u3002\u901a\u8fc7\u5982\u4e0b\u547d\u4ee4\u53ef\u4ee5\u67e5\u770b\u90e8\u7f72\u8fc7\u7a0b\u4e2d\u7684\u5b8c\u6574\u65e5\u5fd7\uff1a<\/p>\n
\r\n$ kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l job-name=kubesphere-installer -o jsonpath='{.items[0].metadata.name}') -f\r\n<\/pre>\n\u5982\u679c\u4e0a\u9762\u7528\u4e8e\u5b89\u88c5\u7684 Job \u662f\u5b8c\u6210\u72b6\u6001\u7684\u8bdd\uff0c\u8bc1\u660e KubeSphere \u5df2\u7ecf\u5b89\u88c5\u6210\u529f\u4e86\u3002<\/p>\n
\u6700\u540e\uff0c\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a Ingress \u5bf9\u8c61\u6765\u8bbf\u95ee KubeSphere\uff1a(kubesphere-ingress.yaml)<\/p>\n
\r\n$ apiVersion: extensions\/v1beta1\r\nkind: Ingress\r\nmetadata:\r\n name: kubesphere\r\n namespace: kubesphere-system\r\n annotations:\r\n kubernetes.io\/ingress.class: nginx\r\nspec:\r\n rules:\r\n - host: ks.qikqiak.com\r\n http:\r\n paths:\r\n - path:\r\n backend:\r\n serviceName: ks-console\r\n servicePort: 80\r\n<\/pre>\n\u76f4\u63a5\u521b\u5efa\u5373\u53ef\uff1a<\/p>\n
\r\n$ kubectl create -f kubesphere-ingress.yaml\r\n<\/pre>\n\u6700\u540e\u505a\u597d\u57df\u540d\u89e3\u6790\uff0c\u5728\u6d4f\u89c8\u5668\u4e2d\u5c31\u53ef\u4ee5\u8bbf\u95ee\u4e86\uff1a<\/p>\n
<\/p>\n
\u9ed8\u8ba4\u7684\u767b\u5f55\u4fe1\u606f\u4e3a\uff1a<\/p>\n
\r\n\u7528\u6237\u540d\uff1aadmin\r\n\u5bc6\u7801\uff1aP@88w0rd\r\n<\/pre>\n<\/p>\n
KubeSphere \u8fd8\u5728\u6301\u7eed\u8fed\u4ee3\u548c\u5feb\u901f\u53d1\u5c55\uff0c\u6b22\u8fce\u5927\u5bb6\u5728 GitHub \u5173\u6ce8\u548c\u4e0b\u8f7d\u4f53\u9a8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u9664\u6b64\u4e4b\u5916\uff0c\u5e73\u53f0\u5df2\u7ecf\u6574\u5408\u5e76\u4f18\u5316\u4e86\u591a\u4e2a\u9002\u7528\u4e8e\u5bb9\u5668\u573a\u666f\u7684\u529f\u80fd\u6a21\u5757\uff0c\u4ee5\u5b8c\u6574\u7684\u89e3\u51b3\u65b9\u6848\u5e2e\u52a9\u4f01\u4e1a\u8f7b\u677e\u5e94\u5bf9\u654f\u6377\u5f00\u53d1\u4e0e\u81ea\u52a8\u5316\u8fd0 […]<\/p>\n","protected":false},"author":1479,"featured_media":205540,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-205514","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/205514","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1479"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=205514"}],"version-history":[{"count":3,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/205514\/revisions"}],"predecessor-version":[{"id":205539,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/205514\/revisions\/205539"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/205540"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=205514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=205514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=205514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}