Instalando OKD 3.11
En dos nodos.
EL master será
qqmelo1c.mylabserver.com
El nodo será
qqmelo2c.mylabserver.com
Tendremos que hacer el tema del
ssh-keygen, y el tema de los copy-id.
Luego, que este todo ok, y que estén
los hosts correspondientes, se puede ver de correr lo que falta...
yum
-y install centos-release-openshift-origin311 epel-release docker
git pyOpenSS
systemctl
start docker
systemctl
enable docker
yum
-y install openshift-ansible |
Luego de esto, copiar esto en
/etc/ansible/hosts
[OSEv3:children]
masters
nodes
etcd
[OSEv3:vars]
#
admin user created in previous section
ansible_ssh_user=root
ansible_become=true
openshift_deployment_type=origin
#
use HTPasswd for authentication
openshift_master_identity_providers=[{'name':
'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind':
'HTPasswdPasswordIdentityProvider'}]
#
CHANGE THIS LINE / openssl passwd -apr1 redhat
openshift_master_htpasswd_users={'admin':'$apr1$qEufOSTX$R1ObTWs7YVwmKSjmaWzCa0',
'developer': '$apr1$ojtj8hHs$C9UZtdLoDs2Hcdw2msKOm0'}
os_sdn_network_plugin_name='redhat/openshift-ovs-multitenant'
#
define default sub-domain for Master node
openshift_master_default_subdomain=apps.mylabserver.com
#
allow unencrypted connection within cluster
openshift_docker_insecure_registries=172.30.0.0/16
openshift_disable_check=disk_availability,docker_storage,memory_availability,docker_image_availability
[masters]
qqmelo1c.mylabserver.com
openshift_schedulable=true containerized=false
[etcd]
qqmelo1c.mylabserver.com
[nodes]
#
defined values for [openshift_node_group_name] in the file below
#
[/usr/share/ansible/openshift-ansible/roles/openshift_facts/defaults/main.yml]
qqmelo1c.mylabserver.com
openshift_node_group_name='node-config-all-in-one'
qqmelo2c.mylabserver.com
openshift_node_group_name='node-config-compute |
Luego,
corremos el playbook de los prerequisitos.
ansible-playbook /usr/share/ansible/openshift-ansible/playbooks/prerequisites.yml |
Y luego el playbook de la instalación
ansible-playbook /usr/share/ansible/openshift-ansible/playbooks/deploy_cluster.yml |
No comments:
Post a Comment