This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Directory with master files (confs, certs etc.) | |
| MASTER_DIR=/var/lib/openshift/openshift.local.config/master | |
| # KUBECONFIG for cluster admin | |
| export KUBECONFIG=$MASTER_DIR/admin.kubeconfig | |
| # Public name for the registry (default for ADB 1.7.1 is hub.openshift.10.1.2.2.xip.io) | |
| REGISTRY_ROUTE=$(oc get route docker-registry -o template --template='{{ .spec.host }}') | |
| # Get IP of the registry service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "kind": "List", | |
| "apiVersion": "v1", | |
| "metadata": {}, | |
| "items": [{ | |
| "kind": "ReplicationController", | |
| "apiVersion": "v1", | |
| "metadata": { | |
| "name": "nginx-1", | |
| "labels": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| config.vm.provision "shell", inline: <<-SHELL | |
| if ! grep -q 'registry-mirror' /etc/sysconfig/docker; then | |
| sed -i "s/^OPTIONS=\\"/OPTIONS=\\"--registry-mirror=http:\\/\\/10.1.2.1:5000 /g" /etc/sysconfig/docker | |
| sed -i "s/^\\# INSECURE_REGISTRY='.*/INSECURE_REGISTRY=\\"--insecure-registry=10.1.2.1:5000\\" /g" /etc/sysconfig/docker | |
| echo "restarting docker" | |
| systemctl restart docker | |
| fi | |
| SHELL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo cp adb-utils/services/openshift/scripts/* /opt/adb/openshift/ | |
| sudo cp adb-utils/services/openshift/openshift.service /usr/lib/systemd/system/openshift.service | |
| sudo cp adb-utils/services/openshift/openshift_option /etc/sysconfig/openshift_option |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export KUBECONFIG=/var/lib/openshift/openshift.local.config/master/admin.kubeconfig | |
| oc config view | grep server | |
| oc login -u system:admin <url from previous comand ip that is not localhost> | |
| oc -n openshift create -f https://raw.githubusercontent.com/jboss-openshift/application-templates/master/jboss-image-streams.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| VAGRANT_BOX_IP=10.1.2.33 | |
| sudo ip r a 10.254.0.0/16 via $VAGRANT_BOX_IP src 10.1.2.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "kind": "ReplicationController", | |
| "apiVersion": "v1", | |
| "metadata": { | |
| "name": "busybox", | |
| "labels": { | |
| "name": "busybox" | |
| } | |
| }, | |
| "spec": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| clusters: | |
| - cluster: | |
| certificate-authority: /home/tomas/.kube/ca | |
| server: https://kubernetes | |
| name: aws_kubernetes | |
| contexts: | |
| - context: | |
| cluster: aws_kubernetes | |
| user: aws_kubernetes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| clusters: | |
| - cluster: | |
| certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURWakNDQWo2Z0F3SUJBZ0lKQUlKL29xenZwNFNETUEwR0NTcUdTSWIzRFFFQkN3VUFNQ0V4SHpBZEJnTlYKQkFNTUZqVXlMalV3TGpZdU1UWXdRREUwTmpRMk1qUXhPRGd3SGhjTk1UWXdOVE13TVRZd016QTRXaGNOTWpZdwpOVEk0TVRZd016QTRXakFoTVI4d0hRWURWUVFEREJZMU1pNDFNQzQyTGpFMk1FQXhORFkwTmpJME1UZzRNSUlCCklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUF5aVVYNHF6dkFlNno2K3M3Vkt2K2Q5bXkKS1NSQU44QnZrUWpoZC9XVE1ibG41bmp5T1NFRVpmSGxHY1RYYzJ6bTc0UFJzMHBuaFdoUXBKNU9ERjhjVjJaOQp2SU90VWVaT1JMR0xkMW1FbWdQQjk3d3lmNWhNVDR0eEVqbldsd3czSTlYdkZYY3JQU2dGZW82RlQ4blJHcGk2CldYN082MDVuR3JDSFBVcUQ3T0V5c2VZWHpGUFF5RUo2RGlKZ0Z3RjI2YzFvS0FPTW9hY25sYnZ5TDVXK2YxZlIKQ0I2czdZYUJYckVFTnp4RlE0cXQzUVBIMExOY1ZCL3ViaEhrTnA2V3FDcm9TeFg5bUVVeDQxNCt3ZFM2QnNGTwpiQVVDL1J2Q3g0Z3pnRW5lQVZ2Tkw0Y0NUUU1KTm9IUk5YZ3gxWDM0OVFQUnZKeXFENVJrdG1UalR5ellpUUlECkFRQUJvNEdRTUlHTk1CMEdBMVVkRGdRV0JCUm1DZExCUGFZdFhvR1ZLQWk5bFdoOW5FSlJyakJSQmdOVkhTTUUKU2pCSWdCUm1DZExCUGFZdFhvR1ZLQWk5bFdoOW5FSlJycUVscENN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| clusters: | |
| - cluster: | |
| certificate-authority: /home/tomas/.kube/ca | |
| server: https://kubernetes | |
| name: aws_kubernetes | |
| contexts: | |
| - context: | |
| cluster: aws_kubernetes | |
| user: aws_kubernetes |