c语言sscanf函数的用法是什么
262
2022-10-27
k8s 实验 helm 创建nodejs demo
什么鬼代码,以为梯子挂了准备ctrl+c,结果自己好了
[root@k7smaster demo-chart]# helm dependency update Hang tight while we grab the latest from your chart repositories... ...Unable to get an update from the "local" chart repository (Get dial tcp 127.0.0.1:8879: connect: connection refused ...Successfully got an update from the "stable" chart repository Update Complete. ⎈Happy Helming!⎈ Saving 1 charts Downloading mariadb from repo Deleting outdated charts [root@k7smaster demo-chart]#
mariadb下来了
[root@k7smaster demo-chart]# ls charts/
mariadb-7.3.14.tgz
毛,资源名没找到,容我排个错 ,权限不足吗?
[root@k7smaster charts]# kubectl create serviceaccount --namespace kube-system tiller Error from server (AlreadyExists): serviceaccounts "tiller" already exists [root@k7smaster charts]# kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller clusterrolebinding.rbac.authorization.k8s.io/tiller-cluster-rule created [root@k7smaster charts]# kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}' deployment.apps/tiller-deploy patched
可以,继续
[root@k7smaster demo-chart]# helm install . NAME: rolling-ostrich LAST DEPLOYED: Sat Sep 12 19:22:33 2020 NAMESPACE: default STATUS: DEPLOYED RESOURCES: ==> v1/Pod(related) NAME READY STATUS RESTARTS AGE rolling-ostrich-demo-chart-b65fbd777-gjmpb 0/1 ContainerCreating 0 0s rolling-ostrich-demo-chart-b65fbd777-msp9g 0/1 ContainerCreating 0 0s rolling-ostrich-demo-chart-b65fbd777-xz2s4 0/1 ContainerCreating 0 0s rolling-ostrich-mariadb-0 0/1 Pending 0 0s ==> v1/Secret NAME AGE rolling-ostrich-mariadb 0s ==> v1/ConfigMap rolling-ostrich-mariadb 0s rolling-ostrich-mariadb-tests 0s ==> v1/Service rolling-ostrich-mariadb 0s rolling-ostrich-demo-chart 0s ==> v1/Deployment rolling-ostrich-demo-chart 0s ==> v1/StatefulSet rolling-ostrich-mariadb 0s NOTES: 1. Get the application URL by running these commands: NOTE: It may take a few minutes for the LoadBalancer IP to be available. You can watch the status of by running 'kubectl get svc -w rolling-ostrich-demo-chart' export SERVICE_IP=$(kubectl get svc --namespace default rolling-ostrich-demo-chart -o jsonpath='{.status.loadBalancer.ingress[0].ip}') echo pod会持续crash一直到mariadb running
[root@k7smaster demo-chart]# helm delete rolling-ostrich release "rolling-ostrich" deleted [root@k7smaster demo-chart]# helm list [root@k7smaster demo-chart]# kpod NAME READY STATUS RESTARTS AGE rolling-ostrich-demo-chart-b65fbd777-gjmpb 0/1 Terminating 23 71m rolling-ostrich-demo-chart-b65fbd777-msp9g 0/1 Terminating 22 71m rolling-ostrich-demo-chart-b65fbd777-xz2s4 0/1 Terminating 24 71m
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~