1.5. 参照資料
1.5.1. OpenShift Container Platform インベントリーファイルのサンプル リンクのコピーリンクがクリップボードにコピーされました!
リンクのコピーリンクがクリップボードにコピーされました!
このサンプルを使用して、クラスター設定に一致するように独自の Ansible インベントリーファイルを変更する方法を確認します。
注記
このサンプルでは、クラスターにインフラストラクチャーノードでもある単一マスターと、2 つの別個のコンピュートノードがあります。
[OSEv3:children] masters nodes etcd [OSEv3:vars] openshift_deployment_type=openshift-enterprise ansible_ssh_user=root ansible_service_broker_registry_whitelist=['.*-apb$'] ansible_service_broker_local_registry_whitelist=['.*-apb$'] # Enable admission controller webhooks openshift_master_admission_plugin_config={"ValidatingAdmissionWebhook":{"configuration":{"kind": "DefaultAdmissionConfig","apiVersion": "v1","disable": false}},"MutatingAdmissionWebhook":{"configuration":{"kind": "DefaultAdmissionConfig","apiVersion": "v1","disable": false}}} # CRI-O openshift_use_crio=true # Provide your credentials to consume the redhat.io registry oreg_auth_user=$rhnuser oreg_auth_password='$rhnpassword' # Host groups [masters] master.example.com [etcd] master.example.com [nodes] master.example.com openshift_node_group_name='node-config-master-infra-crio' node1.example.com openshift_node_group_name='node-config-compute-crio' node2.example.com openshift_node_group_name='node-config-compute-crio'
[OSEv3:children]
masters
nodes
etcd
[OSEv3:vars]
openshift_deployment_type=openshift-enterprise
ansible_ssh_user=root
ansible_service_broker_registry_whitelist=['.*-apb$']
ansible_service_broker_local_registry_whitelist=['.*-apb$']
# Enable admission controller webhooks
openshift_master_admission_plugin_config={"ValidatingAdmissionWebhook":{"configuration":{"kind": "DefaultAdmissionConfig","apiVersion": "v1","disable": false}},"MutatingAdmissionWebhook":{"configuration":{"kind": "DefaultAdmissionConfig","apiVersion": "v1","disable": false}}}
# CRI-O
openshift_use_crio=true
# Provide your credentials to consume the redhat.io registry
oreg_auth_user=$rhnuser
oreg_auth_password='$rhnpassword'
# Host groups
[masters]
master.example.com
[etcd]
master.example.com
[nodes]
master.example.com openshift_node_group_name='node-config-master-infra-crio'
node1.example.com openshift_node_group_name='node-config-compute-crio'
node2.example.com openshift_node_group_name='node-config-compute-crio'