pixiu-io / kubez-ansible Goto Github PK
View Code? Open in Web Editor NEWTo provide quick deployment tools for kubernetes cluster and cloud native application by ansible
To provide quick deployment tools for kubernetes cluster and cloud native application by ansible
helm_toolbox 模块支持 hook 功能,用于支持在执行前或者后执行指定的程序
Kubeconfig配置文件,没有指定外网地址地址,需要增加md说明
只支持centos系统,不支持其他系统,比如Ubuntu,希望英俊的楼主能新出一个支持Ubuntu版本的工具
pods "metrics-server-v0.3.6-cbb9b8dff-gvn87" is forbidden: [minimum cpu usage per Container is 100m, but request is 5m, minimum memory usage per Container is 90Mi, but request is 50Mi]
Error creating: pods "coredns-546565776c-f6r98" is forbidden: minimum memory usage per Container is 90Mi, but request is 70Mi
62s Warning FailedCreate replicaset/coredns-546565776c Error creating: pods "coredns-546565776c-dhbcc" is forbidden: minimum memory usage per Container is 90Mi, but request is 70Mi
清理 gerrit 的支持, gerrit 用的不多,不在提供维护
比方说etcd的备份与恢复,etcd的迁移等功能
[root@kubez~]# helm list -A
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /root/.kube/config
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /root/.kube/config
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
依赖 helm_toolbox 的新功能
支持最新版本 istio的一键安装
TASK [kubernetes : Apply helm3 command immediately for master nodes] *********************************************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "non-zero return code", "rc": 1, "stderr": "Error from server (NotFound): pods "helm-toolbox-0" not found\nError from server (NotFound): pods "helm-toolbox-0" not found\nError from server (NotFound): pods "helm-toolbox-0" not found\nError from server (NotFound): pods "helm-toolbox-0" not found\nError from server (NotFound): pods "helm-toolbox-0" not found\nError from server (NotFound): pods "helm-toolbox-0" not found\nError from server (NotFound): pods "helm-toolbox-0" not found\nError from server (NotFound): pods "helm-toolbox-0" not found\nfailed to wait helm-toolbox up\n", "stderr_lines": ["Error from server (NotFound): pods "helm-toolbox-0" not found", "Error from server (NotFound): pods "helm-toolbox-0" not found", "Error from server (NotFound): pods "helm-toolbox-0" not found", "Error from server (NotFound): pods "helm-toolbox-0" not found", "Error from server (NotFound): pods "helm-toolbox-0" not found", "Error from server (NotFound): pods "helm-toolbox-0" not found", "Error from server (NotFound): pods "helm-toolbox-0" not found", "Error from server (NotFound): pods "helm-toolbox-0" not found", "failed to wait helm-toolbox up"], "stdout": "", "stdout_lines": []}
TASK [kubernetes : Apply helm3 command immediately for master nodes(the default timeout is 600s)] **********************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "non-zero return code", "rc": 1, "stderr": "error: unexpected EOF\nfailed to copy helm from helm-toolbox\n", "stderr_lines": ["error: unexpected EOF", "failed to copy helm from helm-toolbox"], "stdout": "helm-toolbox-0 1/1 Running 0 21m\nDropping out copy after 0 retries\n", "stdout_lines": ["helm-toolbox-0 1/1 Running 0 21m", "Dropping out copy after 0 retries"]}
提供自动 hpa 功能
TASK [kubectl-apply : Apply kubernetes application | olm] ********************************************************************************************************************************************************************************************************************
fatal: [localhost -> localhost]: FAILED! => {"changed": true, "msg": "'Traceback (most recent call last):\n File "/tmp/ansible_kube_toolbox_payload_4xLles/ansible_kube_toolbox_payload.zip/ansible/modules/kube_toolbox.py", line 297, in main\n File "/tmp/ansible_kube_toolbox_payload_4xLles/ansible_kube_toolbox_payload.zip/ansible/modules/kube_toolbox.py", line 265, in run\n File "/tmp/ansible_kube_toolbox_payload_4xLles/ansible_kube_toolbox_payload.zip/ansible/modules/kube_toolbox.py", line 88, in _run\nCalledProcessError: Command \'kubectl apply -f /tmp/pixiuspace/olm.yml\' returned non-zero exit status 1\n'"}
需要有个vip对外提供服务,达到node节点挂了不影响客户使用
pods "metrics-server-v0.3.6-cbb9b8dff-gvn87" is forbidden: [minimum cpu usage per Container is 100m, but request is 5m, minimum memory usage per Container is 90Mi, but request is 50Mi]
istio-gateway 还没支持
TASK [kubernetes : include_tasks] ****************************************************************************************************************************
fatal: [localhost]: FAILED! => {"reason": "the role 'loadbalancer' was not found in /usr/share/kubez-ansible/ansible/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/usr/share/kubez-ansible/ansible\n\nThe error appears to be in '/usr/share/kubez-ansible/ansible/roles/kubernetes/tasks/destroy.yml': line 26, column 11, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n import_role:\n role: loadbalancer\n ^ here\n"}
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.