Skip to content

Instantly share code, notes, and snippets.

View dav1x's full-sized avatar

Davis Phillips dav1x

  • Red Hat
  • Austin, TX
View GitHub Profile
console#show tech-support
***************** Show Version ******************
Switch: 1
System Description............................. PowerConnect M8024-k,
5.1.11.1, VxWorks 6.6
Machine Description............................ Dell Ethernet Switch
Machine Type................................... PowerConnect M8024-k
.Virtual Machine Node Requirements
|====
^|Node Type ^|Hardware
.5+|Master
| 2 vCPU
| 16GB RAM
| 1 x 60GB 3 x 40GB
.5+|Node
console#show mac address-table
Aging time is 300 Sec
Vlan Mac Address Type Port
-------- --------------------- ----------- ---------------------
1 44A8.42AF.5804 Dynamic Te1/0/2
1 44A8.42AF.5845 Dynamic Te1/0/7
1 44A8.42AF.5879 Dynamic Te1/0/11
1 44A8.42AF.5886 Dynamic Te1/0/12
https://10.19.114.25/vsphere-client/
[email protected]
ssh [email protected]
atomic
# playbook
---
- hosts: localhost
gather_facts: yes
become: yes
roles:
- rhsm
- hosts: localhost
gather_facts: yes
vSphere Cloud provider and VMDK dynamic provisioning
The release of OpenShift Container Platform 3.6 brings support for vsphere cloud provider. This provides vsphere VMDK dynamic provisioning for persistent volumes for container workloads. The storage presented to vsphere virtual machines as a VMDK has ReadWriteOnce access mode.
VMDKs have a one to one relationship with the virtual machines they are attached to hence the RWO access. Configuring the OCP cluster for vsphere cloud provider support requires configuration changes on both the master and node configuration and requires some vsphere specific changes. The kubernetes docs (https://kubernetes.io/docs/getting-started-guides/vsphere/) to a great job of highlighting the requirements for vsphere.
Both master and nodes need the following parameters set cloud-provider=vsphere and cloud-config=<Path of vsphere.conf file>.
- Master configuration
```bash
[root@nfs-0 ~]# cat /etc/exports
/exports *(rw,sync,all_squash)
/pv1 *(rw,sync,all_squash)
The release of OpenShift Container Platform 3.6 brings support for vsphere cloud provider. This provides vsphere VMDK dynamic provisioning for persistent volumes for container workloads. The storage presented to vsphere virtual machines as a VMDK has ReadWriteOnce access mode.
In the OCP 3.6 on vSphere <a href="https://access.redhat.com/documentation/en-us/reference_architectures/2017/html/deploying_and_managing_openshift_container_platform_3.6_on_vmware_vsphere/">reference architecture </a> much of this process is automated and can be implemented easily.
Virtual Machine Disks or VMDKs exists in virtual machines. Configuring the OCP cluster for vsphere cloud provider support requires:
<ul>
<li>Master Node Configuration</li>
<li>Application Node Configuration</li>
<li>vCenter or vSphere Requirements</li>
</ul>
# Create the product
hammer product create --name "OCP3_Disconnected" --sync-plan "e2e-daily" --organization "e2e"
# Assign all the required docker images
hammer repository create --name "openshift3/ose-haproxy-router" --content-type "docker" --url "http://registry.access.redhat.com/" --docker-upstream-name "openshift3/ose-haproxy-router" --product "OCP3_Disconnected" --organization "e2e"
hammer repository create --name "openshift3/registry-console" --content-type "docker" --url "http://registry.access.redhat.com/" --docker-upstream-name "openshift3/registry-console" --product "OCP3_Disconnected" --organization "e2e"
hammer repository create --name "openshift3/ose-deployer" --content-type "docker" --url "http://registry.access.redhat.com/" --docker-upstream-name "openshift3/ose-deployer" --product "OCP3_Disconnected" --organization "e2e"
hammer repository create --name "openshift3/ose-pod" --content-type "docker" --url "http://registry.access.redhat.com/" --docker-upstream-name "openshift3/ose-pod" --product
#!/usr/bin/env python
# vim: sw=4 ts=4 et
import os, argparse, getpass
class ocpSat6(object):
__name__ = 'ocpSat6'
openshift3Images=['openshift3/ose-deployer','openshift3/ose-docker-registry','openshift3/registry-console','openshift3/ose-pod','openshift3/ose-docker-builder','openshift3/ose-sti-builder','openshift3/ose-haproxy-router','openshift3/logging-elasticsearch','openshift3/logging-kibana','openshift3/logging-fluentd','openshift3/logging-auth-proxy','openshift3/metrics-hawkular-metrics','openshift3/metrics-cassandra','openshift3/metrics-heapster','openshift3/ose','openshift3/node','openshift3/openvswitch','rhel7/etcd','openshift3/ose-keepalived-ipfailover']
xpaasImages=['redhat-openjdk-18/openjdk18-openshift', 'jboss-webserver-3/webserver30-tomc