Skip to content

Instantly share code, notes, and snippets.

View ramene's full-sized avatar

Ramene Anthony ramene

View GitHub Profile
wget -qO- -O terraform.zip \
https://releases.hashicorp.com/terraform/0.11.6/terraform_0.11.6_linux_amd64.zip \
&& unzip terraform.zip \
&& rm terraform.zip
wget -qO- \
https://dist.ipfs.io/go-ipfs/v0.4.14/go-ipfs_v0.4.14_linux-amd64.tar.gz | \
# https://dist.ipfs.io/go-ipfs/v0.4.14/go-ipfs_v0.4.14_darwin-amd64.tar.gz | \
tar xvz -C . \
&& cd go-ipfs \
&& ./install.sh \
&& rm -rf go-ipfs
# Download Geth&Tools and minikube
# TODO: Parametization
wget -qO- -O geth-alltools.tar.gz \
# OSX and Linux
https://gethstore.blob.core.windows.net/builds/geth-alltools-linux-amd64-1.8.3-329ac18e.tar.gz && \
https://gethstore.blob.core.windows.net/builds/geth-alltools-darwin-amd64-1.8.3-329ac18e.tar.gz && \
tar -xvzf geth-alltools.tar.gz -C /usr/local/bin --strip=1 \
&& rm geth-alltools.tar.gz \
# OSX and Linux
&& curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.25.2/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ethstats
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
backend:
serviceName: default-http-backend
servicePort: 80
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: microservices
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
backend:
serviceName: stock-con
servicePort: 80
apiVersion: voyager.appscode.com/v1beta1
kind: Ingress
metadata:
name: testi
namespace: kube-system
annotations:
kubernetes.io/ingress.class: voyager
ingress.appscode.com/type: NodePort
spec:
externalIPs:
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-nginx
spec:
selector:
matchLabels:
run: my-nginx
replicas: 2
template:
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: flannel
rules:
- apiGroups:
- ""
resources:
- pods
kind: PersistentVolume
apiVersion: v1
metadata:
name: openvpn-data
labels:
type: local
spec:
storageClassName: generic
capacity:
storage: 2Gi
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: openvpn-data
spec:
storageClassName: generic
accessModes:
- ReadWriteOnce
resources:
requests: