GithubHelp home page GithubHelp logo

pixiu-io / kubez-ansible Goto Github PK

View Code? Open in Web Editor NEW
1.3K 36.0 280.0 1.33 MB

To provide quick deployment tools for kubernetes cluster and cloud native application by ansible

Python 4.07% Shell 1.70% Dockerfile 0.03% Jinja 94.17% Makefile 0.03%
ansible kubernetes prometheus grafana k8s istio paas helm storage loki

kubez-ansible's Introduction

Kubez-ansible Overview

To provide quick deployment tools for kubernetes cluster and cloud native application

Build Status Release License

This session has been tested on Rocky 8.5, Debian 11 and Ubuntu 20.04+ which supported by python3.

More distribution supported see more

Getting Started

Learn about Kubez Ansible by reading the documentation online kubez-ansible.

Supported Components

学习分享

沟通交流

  • 搜索微信号 yingjuncz, 备注(github), 验证通过会加入群聊
  • bilibili 技术分享

Copyright 2019 caoyingjun ([email protected]) Apache License 2.0

kubez-ansible's People

Contributors

agxmaster avatar aide-cloud avatar binhoul avatar cangwei3366 avatar caoyingjunz avatar chenghongxi avatar darianjmy avatar gitlayzer avatar halamayday avatar hohenser avatar huluqaqxq avatar jackjdk avatar kamisamad avatar kong8huan051 avatar lbemi avatar pixiuio avatar puzhihao avatar qinlang258 avatar qq763253009 avatar safeboys avatar shanwu888 avatar swordtraveller avatar tuxnotes avatar wangaokang avatar whitehatboxer avatar xiazimoexploit avatar youdian-xiaoshuai avatar yvanu avatar zelayan avatar zzerotwo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kubez-ansible's Issues

启动coredns失败,usage per Container is 90Mi, but request is 70Mi

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

centos 7.8 在安装 helm 的时候异常: cp 的时候存在大文件问题

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"]}

metrics-server started failed

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]

ubantu版本兼容性问题

只支持centos系统,不支持其他系统,比如Ubuntu,希望英俊的楼主能新出一个支持Ubuntu版本的工具

优化 helm_toolbox 模块

  1. helm_toolbox 模块支持 helm repo 的幂等增加,等同于 helm repo add xx xxx
  2. helm_toolbox 模块 支持指定 chart的幂等安装,等同于 helm install release xx -n ns --set k1=v1 --set k2=v2 ...
  3. 支持幂等 卸载,更新等功能

基础组件 olm 首次安装失败

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'"}

执行helm命令的时候,会有warnning 告警

[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

helmv3 安装时未等待pod创建就直接获取状态

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": []}

kubez destroy报语法错误

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"}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.