dse-assignment/README.md

1.3 KiB

WebApp Template Project

Anuglar Frontend Django Backend

  • Start both middleware AND frontend dev server simultaneously
  • See README of subfolder for further information

Deploy Kubernetes Admin Dashboard

Deploy dashboard:

kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0/aio/deploy/recommended.yaml

Create dashboard-admin.yaml file:

apiVersion: v1
kind: ServiceAccount
metadata:
  name: admin-user
  namespace: kubernetes-dashboard
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: admin-user
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
subjects:
- kind: ServiceAccount
  name: admin-user
  namespace: kubernetes-dashboard

Apply it to kubernetes:

kubectl apply -f dashboard-admin.yaml

Get login token:

kubectl get secret -n kubernetes-dashboard $(kubectl get serviceaccount admin-user -n kubernetes-dashboard -o jsonpath="{.secrets[0].name}") -o jsonpath="{.data.token}" | base64 --decode

Start proxy:

kubectl proxy

Access URL: http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/#/ingress?namespace=default

Fix Darwin issue with Ingress

minikube stop && minikube delete && minikube start --vm=true --driver=hyperkit