Skip to main content

helm install  k10 k10-5.0.0.tgz --namespace kasten-io \
    --set global.airgapped.repository=192.168.6.80:8888/library \
    --set secrets.dockerConfig=$(base64 -w 0 < ${HOME}/.docker/config.json) \
    --set global.imagePullSecret="k10-ecr"  \
    --set metering.mode=airgap \
    --set externalGateway.create=true \
    --set auth.tokenAuth.enabled=true

 

/root@k8s-node01 ~]# curl -i http://127.0.0.1:8080/k10/#
HTTP/1.1 403 Forbidden
date: Tue, 14 Jun 2022 06:09:06 GMT
server: envoy
content-length: 0
 

0root@k8s-node01 ~]# kubectl get pod -n kasten-io
NAME READY STATUS RESTARTS AGE
aggregatedapis-svc-759cf6b669-5s4fr 1/1 Running 0 15m
auth-svc-854fcd5965-g2wht 1/1 Running 2 (14m ago ) 15m
catalog-svc-75b8b78bdd-lhdwq 2/2 Running 0 15m
controllermanager-svc-5c7b5666df-jtcvb 1/1 Running 0 15m
crypto-svc-76569cd7c6-hdxqh 3/3 Running 0 15m
dashboardbff-svc-ffdf9f7c7-5rm2m 1/ 1 运行 0 15m
executor-svc-5c9cf67764-gz4j9 2/2 运行 0 15m
executor-svc-5c9cf67764-lzwch 2/2 运行 0 15m
executor-svc-5c9cf67764-rw4wv 2/2 运行 0 15m
frontend-svc-6df54cf6f9-ftdj2 1/1 运行 0 15m
gateway-5bf68fcd56-9fxk2 1/1 运行 0 14m
jobs-svc-647676b565-56zp8 1/1 正在运行 0 15m
k10-grafana-5c6d667fdb-bnhfg 1/1 正在运行 0 15m
kanister-svc-7b88b8979d-sv2dz 1/1 正在运行 0 14m
logging-svc-85bf95fd84-bj8bt 1/1 正在运行0 15m
计量-svc-6787d6999f-69g54 1/1 运行 0 15m
prometheus-server-7f55f6546f-2x2vg 2/2 运行 0 15m
state-svc-6c96bc896d-vtbl8 2/2 运行 0 15m
 

 

@zhangwenglq 我看到你的externalgateway启用了,你可以看看你svc中的external gateway,命令如下:

kubectl get svc -n kasten-io gateway-ext

 

这时候,你看到的loadbalancer ip,才是k10的UI入口,而不是你这里curl的127.0.0.1。

 


helm install  k10 k10-5.0.0.tgz --namespace kasten-io \
    --set global.airgapped.repository=192.168.6.80:8888/library \
    --set injectKanisterSidecar.enabled=true \
    --set metering.mode=airgap \
    --set secrets.dockerConfig=$(base64 -w 0 </root/config.json) \
    --set prometheus.imagePullSecretsP0].name="k10-ecr" \
    --set global.persistence.storageClass=nfs-client

 

proot@k8s-master01 kas]# kubectl get pod -n kasten-io -w
NAME                                   READY   STATUS    RESTARTS        AGE
aggregatedapis-svc-bccc4b5d7-jx47l     1/1     Running   0               4m20s
auth-svc-6bddc5fc45-lwn2z              1/1     Running   3 (3m51s ago)   4m40s
catalog-svc-595565548-rczwm            2/2     Running   0               4m40s
controllermanager-svc-db7fb48c-8wmjj   1/1     Running   0               4m40s
crypto-svc-cd5cc94fb-xmsqq             3/3     Running   0               4m30s
dashboardbff-svc-5f67657cc5-mnk57      1/1     Running   0               4m30s
executor-svc-6bfb4ffdcb-bbn4n          2/2     Running   0               4m20s
executor-svc-6bfb4ffdcb-j24g8          2/2     Running   0               4m20s
executor-svc-6bfb4ffdcb-pb6fm          2/2     Running   0               4m30s
frontend-svc-5455f945ff-fdf7h          1/1     Running   0               4m20s
gateway-8689c847b5-vfc7w               1/1     Running   0               4m10s
jobs-svc-6f4b8c4d75-rnpvj              1/1     Running   0               4m30s
k10-grafana-86bcf79f48-cspmz           1/1     Running   0               4m40s
kanister-svc-6cbd87d796-wq6jz          1/1     Running   0               4m10s
logging-svc-b94584d8-m5qlq             1/1     Running   0               4m30s
metering-svc-6f65449dcb-542rp          1/1     Running   0               4m20s
prometheus-server-7f55f6546f-wmvcw     2/2     Running   0               4m40s
state-svc-5f67dcd487-qmqhm             2/2     Running   0               4m20s
^C root@k8s-master01 kas]# curl -i http://127.0.0.1:8080/k10/#/
HTTP/1.1 403 Forbidden
date: Tue, 14 Jun 2022 12:10:24 GMT
server: envoy
content-length: 0

4root@k8s-master01 kas]# 
 

 


[root@k8s-master01 kas]# kubectl get nodes
NAME           STATUS   ROLES                  AGE   VERSION
k8s-master01   Ready    control-plane,master   12d   v1.22.0
k8s-node01     Ready    <none>                 12d   v1.22.0
k8s-node02     Ready    <none>                 12d   v1.22.0
 


Comment