Giter Club home page Giter Club logo

cce's Introduction

Toolset for Cloud Container Engine (CCE)

Kubernetes-Dashboard (./dashboard)

The ./dashboard folder contains all recommended files to run Kubernetes dashboard on Cloud Container Engine. The following advices guide your through all necessary steps to get started quickly.

Prerequisits

  • CCE cluster created with at least one cluster node
  • EIP configured to at least one node or LoadBalancer setup
  • kubectl installed

Getting started

  • Create Kubernetes Dashboard
kubectl create -f kubernetes-dashboard.yaml
  • Create (Administrator) user account and add the cluster role binding for accessing Kubernetes dashboard.
kubectl create -f admin-user.yaml
kubectl create -f admin-user-role.yaml
  • Expose the dashboard (e.g. NodePort) and make it available from outside. Change the type: ClusterIP to type: NodePort
kubectl edit  svc  kubernetes-dashboard -n kube-system
...
spec:
  clusterIP: <ClusterIP>
  ports:
  - port: 443
    protocol: TCP
    targetPort: 8443
  selector:
    k8s-app: kubernetes-dashboard
  sessionAffinity: None
  type: NodePort
...
  • Obtain the correct NodePort from
kubectl get svc  kubernetes-dashboard -n kube-system
NAME                   TYPE       CLUSTER-IP	EXTERNAL-IP		PORT(S)				AGE
kubernetes-dashboard   NodePort   <Cluster-IP>	<none>			443:<NodePort>/TCP	37m
  • Accessing the kubernetes-dashboard is now available from https://<CCE-node-EIP>:<NodePort>.
  • For generating a login-Token for admin user account via kubectl, use the following commands:
token=$(kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep admin-user | awk '{print $1}') | awk '$1=="token:"{print $2}')
echo $token

cce's People

Contributors

tischrei avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.