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
we'll bind mount /etc/profile and /etc/profile.d/ and bind mount /usr/local/bin
in the init.sh
we'll start by source /etc/profile which will cover /etc/profile.d
then check for the vmware-toolbox-cmd from the bind mounted /usr/local/bin
create it if need be
then lastly run vmtoolsd
source /etc/profile
COMMAND=/usr/local/bin/vmware-toolbox-cmd
if [ ! -e $COMMAND ];
echo 'runc exec -t open-vm-tools vmware-toolbox-cmd "$@"' > /usr/local/bin/vmware-toolbox-cmd
fi
exec /usr/bin/vmtoolsd
-> cns-deploy -n storage -g topology.json --admin-key 'myS3cr3tpassw0rd' --user-key 'mys3rs3cr3tpassw0rd'
Welcome to the deployment tool for GlusterFS on Kubernetes and OpenShift.
Before getting started, this script has some requirements of the execution
environment and of the container platform that you should verify.
The client machine that will run this script must have:
* Administrative access to an existing Kubernetes or OpenShift cluster
* Access to a python interpreter 'python'
* Access to the heketi client 'heketi-cli'
if 'storage' in self.node_type:
if 'clean' in self.tag:
self.storage_nodes = int(self.storage_nodes) - int(self.node_number)
else:
self.storage_nodes = int(self.storage_nodes) + int(self.node_number)
config.set('vmware', 'storage_nodes', str(self.storage_nodes))
print "Updating %s file with %s storage_nodes" % (vmware_ini_path, str(self.storage_nodes))
git clone -b vmw-3.5 https://github.com/openshift/openshift-ansible-contrib
cd openshift-ansible-contrib/reference-architecture/vmware-ansible/
cp -f ~/07-26/ocp-on-vmware.ini .
cp -f ~/07-26/vmware_inventory.ini inventory/vsphere/vms/vmware_inventory.ini
./ocp-on-vmware.py --clean
./ocp-on-vmware.py --create_inventory
./ocp-on-vmware.py --create_ocp_vars
./ocp-on-vmware.py
kubernetesMasterConfig:
admissionConfig:
pluginConfig:
{}
apiServerArguments:
cloud-provider:
- "vsphere"
cloud-config:
- "/etc/vsphere/vsphere.conf"
controllerArguments:
[Global]
user = [email protected]
password = mypassword
server = 10.x.x.25
port = 443
insecure-flag = 1
datacenter = Boston
#datastore = /Boston/datastore/ose3-vmware
datastore = ose3-vmware
# working-dir = /Boston/vm/OCP35/
[root@master-0 ~]# oc describe pod test-vmdk
Name: test-vmdk
Namespace: default
Security Policy: privileged
Node: app-0/10.19.114.227
Start Time: Wed, 02 Aug 2017 19:29:57 +0000
Labels: <none>
Annotations: openshift.io/scc=privileged
Status: Running
IP: 172.16.2.8
git clone https://github.com/openshift/openshift-ansible
cat ansible-inventory
[OSEv3:children]
masters
etcd
nodes
[OSEv3:vars]
deployment_type=openshift-enterprise
[code language="bash"]
FROM registry.access.redhat.com/rhel7.3
ENV SYSTEMD_IGNORE_CHROOT=1
RUN yum -y --disablerepo=\* --enablerepo=rhel-7-server-rpms install yum-utils && \
yum-config-manager --disable \* && \
yum-config-manager --enable rhel-7-server-rpms && \
yum clean all