目录

Join the chat at https://gitter.im/openshift/openshift-ansible Build Status Coverage Status

OpenShift Ansible

This repository contains Ansible roles and playbooks to install, upgrade, and manage OpenShift clusters.

This repository is based on openshift/openshift-ansible project. See more informations.

To setup openshift cluster by ansible on huawei clouds, it has made some changes about openstack roles, playbooks and inventories.

Usage

In order to setup openshift cluster by ansible, you’ll need to finish the following steps:

Prerequisite

  • Host Operation System: CentOS 7.3+
  • Host Operation System User: root
  • Available EIP Quatas on Cloud: 4+
  • Available VPC Quatas on Cloud: 1+
  • Available Security Group Quatas on Cloud: 6+

NOTE: If you are trying to deployment openshift cluster on FusionCloud, Because unlike huawei public clouds have relative fixed infra options(images, flavors, etc.), the different FusionCloud environment may have different prepared infrastructures(images, flavors, etc.), you need pre-check and ensure the config options. please see FusionCloud prerequisites

Installation

  1. pull openshift-ansible github repository.
curl https://raw.githubusercontent.com/huaweicloud/openshift-ansible/master/hack/pull-repos.sh | bash
  1. set cloud credentials. ``` cd openshift-ansible

vi keystonerc

set your own ENV in the file

export OS_AUTH_URL=https://iam.cn-north-1.myhwclouds.com export OS_USERNAME=user export OS_PASSWORD=password export OS_IDENTITY_API_VERSION=3 export OS_DOMAIN_NAME=domain export OS_USER_DOMAIN_NAME=domain export OS_PROJECT_DOMAIN_NAME=domain export OS_TENANT_NAME=tenant export OS_REGION_NAME=cn-north-1 export OS_AVAILABILITY_ZONE=cn-north-1a


3. Create a new keypair named **openshift** in cloud web console and put the private key file **openshift.pem** into **openshift-ansible** folder.

4. Install openshift cluster by the following command which can be executed repeatly until success.

. hack/install.sh


5. If you need to uninsall openshift cluster, you can run the following command.

. hack/uninstall.sh


## Applications

Here are some application examples for testing openshift on huawei clouds.

- [applications](applications/)

## Contributing

See the [contribution guide](/mirrors/openshift-ansible/tree/master/CONTRIBUTING.md).

## License

See the [LICENSE](LICENSE) file for details.
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号