Skip to content

Instantly share code, notes, and snippets.

@CalvinHartwell
Last active September 18, 2019 20:55
Show Gist options
  • Save CalvinHartwell/4db7fc11bd0ddde291d222c86c5e326b to your computer and use it in GitHub Desktop.
Save CalvinHartwell/4db7fc11bd0ddde291d222c86c5e326b to your computer and use it in GitHub Desktop.
cdk-aws-demo
# microk8s demo
# https://ubuntu.com/blog/getting-started-with-knative-1
sudo snap install microk8s --classic
sudo microk8s.kubectl get po --all-namespaces
sudo microk8s.enable knative
sudo microk8s.enable istio
sudo microk8s.kubectl get po --all-namespaces
# Setup Credentials
sudo snap install juju --classic
juju add-credential aws ...
juju bootstrap
juju gui
juju deploy charmed-kubernetes
sudo snap install kubectl
juju scp kubernetes-master/0:config ~/.kube/config
kubectl get po --all-namespaces
kubectl proxy
dashboard: http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/
# add aws-specific integrator for storage and load-balancers
juju deploy cs:~containers/aws-integrator
juju trust aws-integrator
juju relate aws-integrator kubernetes-master
juju relate aws-integrator kubernetes-worker
# helm deploy mysql
helm init
helm install stable/mysql
# deploy cats!
wget https://raw.githubusercontent.com/CalvinHartwell/cdk-cats/master/cdk-cats-nodeport.yaml
kubectl apply -f cdk-cats-nodeport.yaml
juju run --unit kubernetes-worker/0 "open-port 30080"
juju run --unit kubernetes-worker/1 "open-port 30080"
juju run --unit kubernetes-worker/2 "open-port 30080"
http://<worker-ip>:30080/
#add-model for kubeflow
juju add-k8s cdu --storage=default --cloud=aws --region=aws/us-east-1
juju bootstrap cdu
juju add-model kubeflow
juju deploy cs:kubeflow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment