cita-cloud / cita-cloud-operator Goto Github PK
View Code? Open in Web Editor NEWA simple way to create a cita-cloud blockchain in the k8s environment
License: Apache License 2.0
A simple way to create a cita-cloud blockchain in the k8s environment
License: Apache License 2.0
当前ConfigMap由于和数据目录放在一起,所以使用了subpath的方式挂载。
但subpath挂载方式不支持ConfigMap的热更新,所以需要将配置文件与数据目录分离。
这就需要每个微服务支持指定配置文件的方式启动
$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
vm196 Ready worker 5d9h v1.21.5
vm197 Ready worker 5d9h v1.21.5
vm198 Ready control-plane,master,worker 5d9h v1.21.5
$ helm repo add cita-cloud-operator https://cita-cloud.github.io/cita-cloud-operator
"cita-cloud-operator" has been added to your repositories
$ helm install cita-cloud-operator cita-cloud-operator/cita-cloud-operator -n=cita
W0316 12:33:27.548929 3695 warnings.go:70] rbac.authorization.k8s.io/v1beta1 ClusterRoleBinding is deprecated in v1.17+, unavailable in v1.22+; use rbac.authorization.k8s.io/v1 ClusterRoleBinding
W0316 12:33:27.670937 3695 warnings.go:70] rbac.authorization.k8s.io/v1beta1 ClusterRoleBinding is deprecated in v1.17+, unavailable in v1.22+; use rbac.authorization.k8s.io/v1 ClusterRoleBinding
NAME: cita-cloud-operator
LAST DEPLOYED: Wed Mar 16 12:33:27 2022
NAMESPACE: cita
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
1. Make sure cita-cloud-operator are running
kubectl get pods --namespace cita -l app.kubernetes.io/instance=cita-cloud-operator
然后operator
的pod一直crash,查看日志:
2022-03-16T13:01:02.781Z INFO controller-runtime.metrics metrics server is starting to listen {"addr": ":8080"} │
│ 2022-03-16T13:01:02.781Z INFO controller-runtime.builder Registering a mutating webhook {"GVK": "citacloud.rivtower.com/v1, Kind=Account", "path": "/mutate-citacloud-rivtower-com-v1-account" │
│ 2022-03-16T13:01:02.781Z INFO controller-runtime.webhook registering webhook {"path": "/mutate-citacloud-rivtower-com-v1-account"} │
│ 2022-03-16T13:01:02.781Z INFO controller-runtime.builder Registering a validating webhook {"GVK": "citacloud.rivtower.com/v1, Kind=Account", "path": "/validate-citacloud-rivtower-com-v1-acco │
│ 2022-03-16T13:01:02.781Z INFO controller-runtime.webhook registering webhook {"path": "/validate-citacloud-rivtower-com-v1-account"} │
│ 2022-03-16T13:01:02.781Z INFO controller-runtime.builder Registering a mutating webhook {"GVK": "citacloud.rivtower.com/v1, Kind=ChainNode", "path": "/mutate-citacloud-rivtower-com-v1-chainn │
│ 2022-03-16T13:01:02.782Z INFO controller-runtime.webhook registering webhook {"path": "/mutate-citacloud-rivtower-com-v1-chainnode"} │
│ 2022-03-16T13:01:02.782Z INFO controller-runtime.builder Registering a validating webhook {"GVK": "citacloud.rivtower.com/v1, Kind=ChainNode", "path": "/validate-citacloud-rivtower-com-v1-ch │
│ 2022-03-16T13:01:02.782Z INFO controller-runtime.webhook registering webhook {"path": "/validate-citacloud-rivtower-com-v1-chainnode"} │
│ 2022-03-16T13:01:02.782Z INFO controller-runtime.builder Registering a mutating webhook {"GVK": "citacloud.rivtower.com/v1, Kind=ChainConfig", "path": "/mutate-citacloud-rivtower-com-v1-chai │
│ 2022-03-16T13:01:02.782Z INFO controller-runtime.webhook registering webhook {"path": "/mutate-citacloud-rivtower-com-v1-chainconfig"} ││ 2022-03-16T13:01:02.782Z INFO controller-runtime.builder Registering a validating webhook {"GVK": "citacloud.rivtower.com/v1, Kind=ChainConfig", "path": "/validate-citacloud-rivtower-com-v1- ││ 2022-03-16T13:01:02.782Z INFO controller-runtime.webhook registering webhook {"path": "/validate-citacloud-rivtower-com-v1-chainconfig"} ││ 2022-03-16T13:01:02.782Z INFO setup starting manager │
│ 2022-03-16T13:01:02.782Z INFO starting metrics server {"path": "/metrics"} │
│ 2022-03-16T13:01:02.782Z INFO controller-runtime.webhook.webhooks starting webhook server │
│ 2022-03-16T13:01:02.782Z ERROR error received after stop sequence was engaged {"error": "context canceled"} │
│ 2022-03-16T13:01:02.783Z ERROR error received after stop sequence was engaged {"error": "context canceled"} │
│ I0316 13:01:02.783088 1 leaderelection.go:248] attempting to acquire leader lease cita/8676995c.rivtower.com... │
│ 2022-03-16T13:01:02.783Z ERROR error received after stop sequence was engaged {"error": "leader election lost"} │
│ 2022-03-16T13:01:02.783Z ERROR setup problem running manager {"error": "open /tmp/k8s-webhook-server/serving-certs/tls.crt: no such file or directory"}
because of the cert.pem and key.pem are not found, and execute create-csr command happen error
when I modify chainconfig's Imgae filed, chainnode should show "need update" status
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.