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-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 01-sts.sh
git clone \
https://github.com/vfarcic/k8s-specs.git
cd k8s-specs
# Create a Kubernetes cluster
cat sts/jenkins.yml
# Only if minishift
View 20-ui.sh
# Links to gists for creating a Kubernetes cluster with Jenkins X
# gke-jx-boot.sh: https://gist.github.com/1eff2069aa68c4aee29c35b94dd9467f
jx add app jx-app-ui
jx get activities \
--filter environment-$CLUSTER_NAME-dev/master \
--watch
UI_ADDR=$(kubectl get ing jxui \
View 01-02-eks.sh
# Requirements:
# git: https://git-scm.com/
# terraform: https://www.terraform.io/downloads.html
# kubectl: https://kubernetes.io/docs/tasks/tools/install-kubectl/
# helm: https://helm.sh/docs/using_helm/
# aws: https://aws.amazon.com/cli/
# eksctl: https://eksctl.io/
# AWS: https://aws.amazon.com/ account with admin privileges
# GitBash (if Windows)
View gke-jx-boot.sh
####################
# Create a cluster #
####################
# Use the same `PROJECT` as when you created the `dev` repository with `jx boot`
PROJECT=[...] # Replace `[...]` with the name of the GCP project (e.g. jx).
# Use the same `CLUSTER_NAME` as when you created the `dev` repository with `jx boot`
CLUSTER_NAME=[...] # Replace `[...]` with the name of the cluster (e.g., jx-boot)
View 18-boot.sh
# Links to gists for creating a Kubernetes cluster
# gke.sh: https://gist.github.com/1b7a1c833bae1d5da02f4fd7b3cd3c17
open "https://github.com/cloudbees/cloudbees-jenkins-x-boot-config"
CLUSTER_NAME=[...]
GH_USER=[...]
git clone \
View 02-doks.sh
# Requirements:
# git: https://git-scm.com/
# terraform: https://www.terraform.io/downloads.html
# kubectl: https://kubernetes.io/docs/tasks/tools/install-kubectl/
# helm: https://helm.sh/docs/using_helm/
# doctl: https://github.com/digitalocean/doctl
# DigitalOcean: https://www.digitalocean.com/ account with admin privileges
# GitBash (if Windows)
# Open https://github.com/terraform-providers/terraform-provider-digitalocean/graphs/contributors
View install-serverless.sh
#####################
# Install Jenkins X #
#####################
# Replace `[...]` with the IP of the load balancer created when you installed the NGINX Ingress controller.
# An example command that retrieves the IP is as follows.
# kubectl get svc --all-namespaces -l app=nginx-ingress -l component=controller -o jsonpath="{.items[0].status.loadBalancer.ingress[0].ip}"
LB_IP=[...]
View gke-jx-serverless.sh
####################
# Create a cluster #
####################
# Install gcloud CLI (https://cloud.google.com/sdk/docs/quickstarts) and make sure that you have GCP admin permissions
# Open https://console.cloud.google.com/cloud-resource-manager to create a new GCP project if you do not have one available already. Make sure to enable billing for that project.
PROJECT=[...] # Replace `[...]` with the name of the GCP project (e.g. jx).
You can’t perform that action at this time.