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
| sudo sh -c "KUBECONFIG=/var/lib/minishift/openshift.local.config/master/admin.kubeconfig openshift admin policy add-scc-to-group anyuid system:authenticated" | |
| # >=v1 | |
| docker exec -it origin openshift admin policy add-scc-to-group anyuid system:authenticated | |
| # for minishfit before `oc cluster up` | |
| minishift ssh | |
| sudo KUBECONFIG=/mnt/sda1/var/lib/minishift/openshift.local.config/master/admin.kubeconfig /usr/local/bin/openshift admin policy add-scc-to-group anyuid system:authenticated |
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
| {{ $cfg := .cfg }} | |
| daemon off; | |
| worker_processes {{ $cfg.workerProcesses }}; | |
| pid /run/nginx.pid; | |
| worker_rlimit_nofile 131072; | |
| pcre_jit on; |
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 --namespace=kube-system create -f https://raw.githubusercontent.com/kubernetes/contrib/master/ingress/controllers/nginx/examples/default-backend.yaml | |
| kubectl --namespace=kube-system expose rc default-http-backend --port=80 --target-port=8080 --name=default-http-backend | |
| wget https://gist.githubusercontent.com/kadel/4a6d81395418fc36df9ff0f28be61c4e/raw/df04199181fedd4c3e8f2f981faa03fade84df0e/nginx.tmpl | |
| kubectl --namespace=kube-system create configmap nginx-template --from-file=nginx.tmpl | |
| kubectl --namespace=kube-system create -f https://github.com/kubernetes/contrib/raw/master/ingress/controllers/nginx/examples/custom-template/custom-template.yaml |
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 |
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
| package main | |
| import ( | |
| "fmt" | |
| kapi "k8s.io/kubernetes/pkg/api" | |
| "github.com/openshift/origin/pkg/client" | |
| "github.com/openshift/origin/pkg/cmd/util/clientcmd" | |
| "github.com/spf13/pflag" |
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=/mnt/sda1/var/lib/minishift/openshift.local.config/master/admin.kubeconfig | |
| /usr/local/bin/openshift cli create -f pv.yaml |
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
| version: "0.2" | |
| services: | |
| frontend: | |
| "docker.io/surajd/frontend:v1": | |
| ports: | |
| - 8080:8080 | |
| type: external | |
| 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
| package main | |
| // This program takes two parameters, first is .travis.yml file and second section from travis file. | |
| // It runs all commands from given section | |
| import ( | |
| "fmt" | |
| "log" | |
| "os" | |
| "os/exec" |
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
| version: "0.1-alpha" | |
| services: | |
| - name: base1 | |
| containers: | |
| - name: nginx | |
| image: tomaskral/nonroot-nginx | |
| ???: # TODO: figure out name of this section | |
| - port: 8080:8080 | |
| type: LoadBalancer |