Skip to content

Instantly share code, notes, and snippets.

@guilhem
Last active April 8, 2019 08:40
Show Gist options
  • Save guilhem/35d20733adb7e6e52e1744dcee308412 to your computer and use it in GitHub Desktop.
Save guilhem/35d20733adb7e6e52e1744dcee308412 to your computer and use it in GitHub Desktop.
Install rancher and all it's parties ;)

helm

kubectl -n kube-system create serviceaccount tiller

kubectl create clusterrolebinding tiller --clusterrole=cluster-admin --serviceaccount=kube-system:tiller

helm init --service-account tiller

Ingress

Namespace

kubectl create ns ingress

Nginx

helm upgrade --install --namespace ingress --version v1.3.1 --values nginx.yaml nginx stable/nginx-ingress

Cert-manager

kubectl apply -f https://raw.githubusercontent.com/jetstack/cert-manager/release-0.7/deploy/manifests/00-crds.yaml
kubectl label namespace ingress certmanager.k8s.io/disable-validation="true"
helm repo add jetstack https://charts.jetstack.io
helm upgrade --install --namespace ingress --version v0.7.0 cert-manager jetstack/cert-manager

ExternalDNS

helm install --name externaldns --namespace ingress stable/external-dns --values externaldns.yaml

Rancher

helm repo add rancher-stable https://releases.rancher.com/server-charts/stable
cat rancher.yaml
helm upgrade --install --namespace cattle-system --values rancher.yaml rancher rancher-stable/rancher
provider: aws
aws:
region: eu-west-1
rbac:
create: true
serviceAccountName: externaldns
controller:
kind: DaemonSet
publishService:
enabled: true
service:
externalTrafficPolicy: Local
annotations:
service.beta.kubernetes.io/aws-load-balancer-type: "nlb"
hostname: rancher.example.com
ingress:
tls:
source: letsEncrypt
extraAnnotations:
kubernetes.io/ingress.class: nginx
letsEncrypt:
email: guilhem@example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment