# create a net and a subnet
i=1;
while [ $i -lt 51 ]; do
neutron net-create scalenet$i --shared;
j=0;
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
1 | |
00:01:22,064 --> 00:01:27,070 | |
I should've known that you would | |
be here, Professor McGonagall. | |
2 | |
00:01:38,290 --> 00:01:41,460 | |
Good evening, Professor Dumbledore. | |
3 |
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: | |
run: gke-goglides | |
name: hello-world | |
spec: | |
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
--- | |
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: gke-goglides-ingress | |
annotations: | |
kubernetes.io/ingress.global-static-ip-name: gke-goglides-static-ip | |
networking.gke.io/managed-certificates: gke-goglides-certificate | |
spec: | |
backend: |
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 | |
kind: Service | |
metadata: | |
labels: | |
run: gke-goglides | |
name: hello-world-service | |
spec: | |
ports: | |
- port: 80 |
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: networking.gke.io/v1beta1 | |
kind: ManagedCertificate | |
metadata: | |
name: gke-goglides-certificate | |
spec: | |
domains: | |
- gke.goglides.com |
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 | |
export KEYCLOAK_URL="http://localhost:8080" | |
export USERNAME="admin" | |
export PASSWORD="password" | |
export CLIENT_ID="admin-cli" | |
export TKN=$(curl -X POST "$KEYCLOAK_URL/auth/realms/master/protocol/openid-connect/token" \ | |
-H "Content-Type: application/x-www-form-urlencoded" \ | |
-d "username=${USERNAME}" \ |
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
podTemplate(label: 'kube-node', yaml: """ | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: docker | |
labels: | |
role: kube-node | |
spec: | |
hostNetwork: true | |
containers: |
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
# Create service and assign cluster-admin role | |
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: dashboard-admin | |
namespace: kube-system | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRoleBinding |
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
git checkout master | |
git fetch | |
git pull | |
# Merge the feature branch into the master branch. | |
git merge FEATURE/demo | |
# Reset the master branch to origin's state. | |
git reset origin/master |