Skip to content

Instantly share code, notes, and snippets.

Viktor Farcic vfarcic

Block or report user

Report or block vfarcic

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 03-quickstart.sh
# Links to gists for creating a cluster with jx
# gke-jx.sh: https://gist.github.com/86e10c8771582c4b6a5249e9c513cd18
# eks-jx.sh: https://gist.github.com/dfaf2b91819c0618faf030e6ac536eac
# aks-jx.sh: https://gist.github.com/6e01717c398a5d034ebe05b195514060
# jx.sh: https://gist.github.com/3dd5592dc5d582ceeb68fb3c1cc59233
jx console
jx create quickstart
View 06-jenkins-setup.sh
cd k8s-specs
git pull
JENKINS_ADDR="jenkins.$LB_IP.nip.io"
echo $JENKINS_ADDR
# Only if minishift
oc patch scc restricted -p '{"runAsUser":{"type": "RunAsAny"}}'
View 07-jenkins-cdp.sh
cd k8s-specs
git pull
# Only if local cluster
cd cd/docker-build
# Only if local cluster
vagrant up
View 05-svc.sh
cd k8s-specs
git pull
minikube start --vm-driver=virtualbox
kubectl config current-context
cat svc/go-demo-2-rs.yml
View ksvc.yaml
{{- if .Values.knativeDeploy }}
apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
{{- if .Values.service.name }}
name: {{ .Values.service.name }}
{{- else }}
name: {{ template "fullname" . }}
{{- end }}
labels:
View 04-rs.sh
minikube start --vm-driver=virtualbox
kubectl config current-context
cd k8s-specs
git pull
cat rs/go-demo-2.yml
View 03-pod.sh
minikube start --vm-driver=virtualbox
kubectl get nodes
git clone https://github.com/vfarcic/k8s-specs.git
cd k8s-specs
kubectl run db --image mongo
View 02-minikube.sh
#################
# Only if MacOS #
#################
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/darwin/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
View 17-progressive-delivery.sh
# Links to gists for creating a cluster with jx
# gke-jx.sh: https://gist.github.com/86e10c8771582c4b6a5249e9c513cd18
# eks-jx.sh: https://gist.github.com/dfaf2b91819c0618faf030e6ac536eac
# aks-jx.sh: https://gist.github.com/6e01717c398a5d034ebe05b195514060
# install.sh: https://gist.github.com/3dd5592dc5d582ceeb68fb3c1cc59233
open "https://github.com/vfarcic/go-demo-6"
GH_USER=[...]
View Jenkinsfile
pipeline {
agent {
label "jenkins-go"
}
environment {
ORG = 'vfarcic'
APP_NAME = 'go-demo-6'
CHARTMUSEUM_CREDS = credentials('jenkins-x-chartmuseum')
}
stages {
You can’t perform that action at this time.