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
az group create -n gitlab | |
az network nsg create -g gitlab -n GitlabNSG | |
az network nsg rule create --nsg-name GitlabNSG -g gitlab --name allow-https --description "HTTPS" --protocol tcp --priority 100 --destination-port-range "443" | |
az network public-ip create -n GitlabIP -g gitlab --allocation-method static --dns-name gitlabci | |
#set DNS record in your domain | |
az network dns record-set a add-record -n ci -g dns -z qubernetes.com --ipv4-address `az network public-ip list -g gitlab -o tsv|awk '{print $4}'` | |
wget https://gist.githubusercontent.com/ams0/304867d9a6ae7e31ef01820e0f0f8dd8/raw/abf539128ef3944a08a3414cb98ebbc411c8b77d/deploy-gitlab-ce.sh |
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": "vlabs", | |
"properties": { | |
"orchestratorProfile": { | |
"orchestratorType": "Kubernetes", | |
"orchestratorRelease": "1.9", | |
"kubernetesConfig": { | |
"enableRbac": true, | |
"networkPolicy": "calico", | |
"enableAggregatedAPIs": true |
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
#!/bin/bash | |
#usage: db2_setup.sh <db2_username> <db2_password> <db2_dbname> | |
#setup DB2 on RHEL7.4 | |
USER=$1 | |
PASSWD=$2 | |
DB=$3 | |
#pre-reqs |
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
[root@g1 rhel]# targetcli ls /iscsi | |
o- iscsi ....................................................................... [Targets: 4] | |
o- iqn.2016-12.org.gluster-block:149ee39c-3198-45aa-a710-099a71c72901 ........... [TPGs: 3] | |
| o- tpg1 ............................................................. [gen-acls, no-auth] | |
| | o- acls ..................................................................... [ACLs: 0] | |
| | o- luns ..................................................................... [LUNs: 1] | |
| | | o- lun0 .......................................................... [user/data (None)] | |
| | o- portals ............................................................... [Portals: 1] | |
| | o- 192.168.1.10:3260 ........................................................... [OK] | |
| o- tpg2 ...................................................................... [disabled] |
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: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: win-webserver | |
name: win-webserver | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: |
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
#!/bin/bash | |
#install Gitlab CE | |
yum -y update | |
yum install -y curl policycoreutils-python epel-release | |
yum -y install nginx | |
yum install -y postfix | |
systemctl enable postfix | |
systemctl start postfix |
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
wget -qO- https://github.com/heketi/heketi/releases/download/v8.0.0/heketi-client-v8.0.0.linux.amd64.tar.gz| tar xvz ; chmod +x heketi-client/bin/heketi-cli ; sudo mv heketi-client/bin/heketi-cli /usr/local/bin | |
export HEKETI_CLI_SERVER="http://`oc get route -n glusterfs -o=jsonpath="{.items[*].status.ingress[*].host}"`" | |
export HEKETI_CLI_KEY=`oc get secret -n glusterfs heketi-storage-admin-secret -o template --template={{.data.key}}|base64 -d` | |
export HEKETI_CLI_USER=admin | |
heketi-cli cluster info |
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
#!/bin/bash | |
set -e | |
set -o pipefail | |
# Add user to k8s using service account, no RBAC (must create RBAC after this script) | |
if [[ -z "$1" ]] || [[ -z "$2" ]]; then | |
echo "usage: $0 <service_account_name> <namespace>" | |
exit 1 | |
fi |
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
kubectl create serviceaccount -n kube-system tiller; kubectl create clusterrolebinding tiller --clusterrole=cluster-admin --serviceaccount=kube-system:tiller; helm init --service-account tiller |