Nombre | Sección | Descripcion |
---|---|---|
Prerequisitos | . | |
Instalacion de paquetes base | ||
Implementación | ||
Configuracion de subscription-manager |
Implementación de Maquina virtual RHEL 7.5 o superior
Realizar la subscripcion a el portal de: [
Nombre del host | IP | Rol |
---|---|---|
bastion.redhat.com | nodo Bastion |
[email protected]:~$ subscription-manager register --username <username> --password <password>
- Posiblemente aqui pedira aceptar terminos y condiciones de la pagina de redhat, en dado caso entrar y aceptar los terminos y condiciones para continuar.
[email protected]:~$ subscription-manager list --available --all
[email protected]:~$ subscription-manager attach --pool=<POOL_ID>
[email protected]:~$ subscription-manager register
[email protected]:~$ subscription-manager refresh
[email protected]:~$ subscription-manager repos \
--enable="rhel-7-server-rpms" \
--enable="rhel-7-server-extras-rpms" \
--enable="rhel-7-server-ose-3.11-rpms" \
--enable="rhel-7-server-ansible-2.6-rpms"
[email protected]:~$ yum -y install yum-utils createrepo docker git
[email protected]:~$ dnf -y install yum-utils createrepo docker git
Montar disco adicional sin formato (Crearlo en herrmaienta del hypervisor)
[email protected]:~$ mkdir -p /opt/repos
[email protected]:~$ cd /opt/repos
[email protected]:~$ for repo in \
rhel-7-server-rpms \
rhel-7-server-extras-rpms \
rhel-7-server-ansible-2.6-rpms \
rhel-7-server-ose-3.11-rpms
do
reposync --gpgcheck -lm --repoid=${repo} --download_path=/opt/repos/
createrepo -v /opt/repos/${repo} -o /opt/repos/${repo}
done
[email protected]:~$ yum install httpd
Editar archivo de configuración de httpd '(/etc/httpd/conf/httpd.conf)' con el siguiente contenido:
Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/opt/repos"
#
# Relax access to content within /var/www.
#
<Directory "/opt/repos">
AllowOverride None
# Allow open access:
Require all granted
</Directory>
# Further relax access to the default document root:
<Directory "/opt/repos">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Require all granted
</Directory>
[email protected]:~$ chmod -R +r /opt/repos
[email protected]:~$ restorecon -vR /opt/repos
[email protected]:~$ sudo firewall-cmd --permanent --add-service=http
[email protected]:~$ sudo firewall-cmd --reload
[email protected]:~$ systemctl enable httpd
[email protected]:~$ systemctl start httpd
Clonar la Maquina Virtual y esa maquina sera el nodo de infraestructura adicional.
Editar el archivo /etc/yum.repos.d/ose.repo en todos los nodos de la infraestructura con el siguiente contenido:
[rhel-7-server-rpms-rhmx-consult]
name=rhel-7-server-rpms-rhmx-consult
baseurl=http://<ip del nodo bastion>/rhel-7-server-rpms
enabled=1
gpgcheck=0
[rhel-7-server-extras-rpms-rhmx-consult]
name=rhel-7-server-extras-rpms-rhmx-consult
baseurl=http://<ip del nodo bastion>/rhel-7-server-extras-rpms
enabled=1
gpgcheck=0
[rhel-7-server-ansible-2.6-rpms-rhmx-consult]
name=rhel-7-server-ansible-2.6-rpms-rhmx-consult
baseurl=http://<ip del nodo bastion>/rhel-7-server-ansible-2.6-rpms
enabled=1
gpgcheck=0
[rhel-7-server-ose-3.11-rpms-rhmx-consult]
name=rhel-7-server-ose-3.11-rpms-rhmx-consult
baseurl=http://<ip del nodo bastion>/rhel-7-server-ose-3.11-rpms
enabled=1
gpgcheck=0
[email protected]:~$ systemctl start docker
[email protected]:~$ docker login registry.redhat.io
[email protected]:~$ docker pull registry.redhat.io/openshift3/apb-base:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/apb-tools:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/automation-broker-apb:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/csi-attacher:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/csi-driver-registrar:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/csi-livenessprobe:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/csi-provisioner:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/grafana:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/image-inspector:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/local-storage-provisioner:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/manila-provisioner:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/mariadb-apb:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/mediawiki:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/mediawiki-apb:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/mysql-apb:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-ansible:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-ansible-service-broker:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-cli:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-cluster-autoscaler:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-cluster-capacity:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-cluster-monitoring-operator:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-console:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-configmap-reloader:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-control-plane:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-deployer:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-descheduler:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-docker-builder:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-docker-registry:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-efs-provisioner:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-egress-dns-proxy:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-egress-http-proxy:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-egress-router:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-haproxy-router:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-hyperkube:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-hypershift:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-keepalived-ipfailover:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-kube-rbac-proxy:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-kube-state-metrics:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-metrics-server:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-node:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-node-problem-detector:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-operator-lifecycle-manager:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-ovn-kubernetes:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-pod:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-prometheus-config-reloader:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-prometheus-operator:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-recycler:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-service-catalog:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-template-service-broker:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-tests:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-web-console:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/postgresql-apb:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/registry-console:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/snapshot-controller:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/snapshot-provisioner:<tag>
[email protected]:~$ docker pull registry.redhat.io/rhel7/etcd:3.2.22
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-efs-provisioner:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/metrics-cassandra:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/metrics-hawkular-metrics:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/metrics-hawkular-openshift-agent:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/metrics-heapster:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/metrics-schema-installer:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/oauth-proxy:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-logging-curator5:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-logging-elasticsearch5:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-logging-eventrouter:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-logging-fluentd:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/ose-logging-kibana5:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/prometheus:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/prometheus-alert-buffer:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/prometheus-alertmanager:<tag>
[email protected]:~$ docker pull registry.redhat.io/openshift3/prometheus-node-exporter:<tag>
[email protected]:~$ docker pull registry.redhat.io/cloudforms46/cfme-openshift-postgresql
[email protected]:~$ docker pull registry.redhat.io/cloudforms46/cfme-openshift-memcached
[email protected]:~$ docker pull registry.redhat.io/cloudforms46/cfme-openshift-app-ui
[email protected]:~$ docker pull registry.redhat.io/cloudforms46/cfme-openshift-app
[email protected]:~$ docker pull registry.redhat.io/cloudforms46/cfme-openshift-embedded-ansible
[email protected]:~$ docker pull registry.redhat.io/cloudforms46/cfme-openshift-httpd
[email protected]:~$ docker pull registry.redhat.io/cloudforms46/cfme-httpd-configmap-generator
[email protected]:~$ docker pull registry.redhat.io/rhgs3/rhgs-server-rhel7
[email protected]:~$ docker pull registry.redhat.io/rhgs3/rhgs-volmanager-rhel7
[email protected]:~$ docker pull registry.redhat.io/rhgs3/rhgs-gluster-block-prov-rhel7
[email protected]:~$ docker pull registry.redhat.io/rhgs3/rhgs-s3-server-rhel7
[email protected]:~$ mkdir certs
[email protected]:~$ openssl req \
-newkey rsa:4096 -nodes -sha256 -keyout certs/domain.key \
-x509 -days 365 -out certs/domain.crt
[email protected]:~$ docker run \
--name registry \
-v /certs:/certs:Z \
-e REGISTRY_HTTP_ADDR=0.0.0.0:443 \
-e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt \
-e REGISTRY_HTTP_TLS_KEY=/certs/domain.key \
-p 443:443 \
registry:2
Editar el archivo /etc/sysconfig/docker en la siguiente línea, para configurar un repositorio inseguro:
OPTIONS='--selinux-enabled --log-driver=journald --signature-verification=false --insecure-registry https://bastion.ocp.rhmx.org --insecure-registry bastion.ocp.rhmx.org'
[email protected]:~$ docker tag registry.redhat.io/openshift3/ose-node:<tag> bastion.ocp.rhmx.org/openshift3/ose-node:<tag>
[email protected]:~$ docker push bastion.ocp.rhmx.org/openshift3/ose-node:<tag>
[email protected]:~$ yum install wget git net-tools bind-utils yum-utils iptables-services bridge-utils bash-completion kexec-tools sos psacct
[email protected]:~$ yum install openshift-ansible
[email protected]:~$ yum install docker-1.13.1
Editar el archivo /etc/sysconfig/docker-storage-setup con el siguiente contenido editar como corresponde:
Reiniciar el equipo
Agregar otro disco adicional a la maquina virtual 80 GB
STORAGE_DRIVER=overlay2
DEVS=/dev/<volumen>
CONTAINER_ROOT_LV_NAME=docker-lv
CONTAINER_ROOT_LV_SIZE=100%FREE
CONTAINER_ROOT_LV_MOUNT_PATH=/var/lib/docker
VG=docker-vg
[email protected]:~$ yum install wget git net-tools bind-utils yum-utils iptables-services bridge-utils bash-completion kexec-tools sos psacct
[email protected]:~$ yum install openshift-ansible
[email protected]:~$ yum install docker-1.13.1
[email protected]:~$ yum update
Reiniciar el equipo
[email protected]:~$ docker-storage-setup
[email protected]:~$ systemctl enable docker
[email protected]:~$ systemctl start docker