rifaterdemsahin / awscodedeploy

Aws code deploy creating a Redis using Ansible
1 stars 1 forks source link

Question1:how to see api server interfaces. #8

Open rifaterdemsahin opened 5 years ago

rifaterdemsahin commented 5 years ago

write the answers here....

madhavisringarapu commented 5 years ago

• Deploy the Kubernetes dashboard to your cluster: kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml • Deploy heapster to enable container cluster monitoring and performance analysis on your cluster kubectl apply -f https://raw.githubusercontent.com/kubernetes/heapster/master/deploy/kube-config/influxdb/heapster.yamlkubectl apply -f

https://raw.githubusercontent.com/kubernetes/heapster/master/deploy/kube-config/influxdb/influxdb.yaml • Create the heapster cluster role binding for the dashboard: kubectl apply -f https://raw.githubusercontent.com/kubernetes/heapster/master/deploy/kube-config/rbac/heapster-rbac.yaml

  1. Create a file called eks-admin-service-account.yaml with the text below: apiVersion: v1 kind: ServiceAccount metadata: name: eks-admin namespace: kube-system Apply the service account to your cluster: kubectl apply -f eks-admin-service-account.yaml Create a file called eks-admin-cluster-role-binding.yaml with the text below: apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRoleBinding metadata: name: eks-admin roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: cluster-admin subjects:
    • kind: ServiceAccount name: eks-admin namespace: kube-system Apply the cluster role binding to your cluster: kubectl apply -f eks-admin-cluster-role-binding.yaml To connect to the Kubernetes dashboard
  2. Retrieve an authentication token for the eks-admin service account. Copy the value from the output. You use this token to connect to the dashboard. kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep eks-admin | awk '{print $1}') Output: Name: eks-admin-token-b5zv4 Namespace: kube-system Labels: Annotations: kubernetes.io/service-account.name=eks-admin kubernetes.io/service-account.uid=bcfe66ac-39be-11e8-97e8-026dce96b6e8

Type: kubernetes.io/service-account-token

Data

ca.crt: 1025 bytes namespace: 11 bytes token:

  1. Start the kubectl proxy. kubectl proxy
  2. Open the following link with a web browser to access the dashboard endpoint:http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/
  3. Choose Token, paste the output from the previous command into the Token field, and choose SIGN IN.
rifaterdemsahin commented 5 years ago

a simple demo needed with the local and the cloud views.

madhavisringarapu commented 5 years ago

Why we could not able to access api server.

madhavisringarapu commented 5 years ago

Hi sir, please find the demo.

https://drive.google.com/file/d/1AqFktKDFp7DCYNcE8phtDv6UZahUPJ_W/view?usp=sharing