没有项目描述

enos-kubernetes的Python项目详细描述


Build StatusLicensePypi

在不同的提供者上部署kubernetes。部署用于 评估/实验目的(非生产)。

此项目使用的幕后操作:

命令行概述

Usage: ek [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  backup        Backup the deployed environment
  build         Preconfigure a machine with all the...
  deploy        Claim resources from a PROVIDER and configure...
  destroy       Destroy the deployed environment
  g5k           Claim resources on Grid'5000(frontend).
  hints         Give some hints on the deployment
  inventory     Generate the Ansible inventory [after g5k or...
  post_install  Post install the deployement
  prepare       Configure available resources [after deploy,...
  reset         Resets Kubernetes (see kspray doc)
  vagrant       Claim resources on vagrant (localhost).

使用概述

安装项目:

virtualenv -p python3 venv
source venv/bin/activate
pip install enos-kubernetes

配置grid5000 rest api访问:

echo '
username: MYLOGIN
password: MYPASSWORD
' > ~/.python-grid5000.yaml

在以下位置获取示例配置文件:

wget https://gitlab.inria.fr/msimonin/enos-kubernetes/raw/master/conf.yaml

部署在G5K上:

ek deploy g5k

使用虚拟机在G5K上部署:

ek deploy vmong5k

在G5K上建立基础图像:

ek build g5k

使用另一个群集在vmong5k上构建基础映像:

ek build vmong5k --cluster=chetemi

这也可以从python直接使用提供的api:

# pseudo-code to deploy to g5k
from enos_kubernetes import tasks

...
tasks.g5k(...)
tasks.inventory(...)
tasks.prepare(...)
...

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
并行处理java。util。同时发生的叉子在游泳池里。常见的并行性准则,用于选择正确的并行度大小   java如何将空白字符追加到指定长度?   安卓应用程序中出现错误,SSLHandshakeException,找不到证书路径的信任锚点   java如何使用JUnit Mockito验证检查方法是否未被调用   java如何使用不同的@RequestMapping解析多个控制器中的静态页面   Selenium中的javascript需要验证搜索结果   访问数据库SQLiteopenHelper方法时java应用程序崩溃(nullpointerexception)   在二叉树中验证最小堆时出现java空指针异常   Java 7的SSL连接失败   java用RestEasyWebTarget替换ProxyFactory不起作用   在Java应用程序中单击“否”按钮后,数组程序冻结(无响应)   数组中的前缀Java初学者前进和   Java HTML解析器,包括脚本标记和LineNumberReader   在java中为长类型数字加前导零   正则表达式无法映射正则表达式java。lang.IllegalArgumentException:模式段中捕获组的数量