Files
docs/doc/source/deploy_install_guides/current/access_starlingx_kubernetes.rst
Kristal Dale 5676e4fda4 Initial commit for guide reorg - upcoming release
- Migrated reorged content from wiki
- Naming, title, and capitalization consistency, minor rewording in sections
- Set up includes to reuse common content across pages
- Introduction: remove 'openstack users' and 'kubernetes users'
- Consolidate term definition into Key concepts page
- Archive R1, move R2 to current releast, set up for R3
- Remove stub pages for duplicate content, or content deferred to R3
- Rework intro and contribute pages for better readability
- Split Key concepts into two pages: Terms and Deployment Options
- Pass for grammar, punctuation, licensing, etc.
- Pull streamlined intro content into R2 install guides (from prev version)
- Added R2 release note page
- Update links to projects/project names to remove the "stx-"
- Add instructions for creating a bootable USB

Story: 2006315
Task: 36046

Change-Id: I38656fd382d1d9cf2969812c548fb7b2dc9dd31e
Signed-off-by: Kristal Dale <kristal.dale@intel.com>
2019-09-02 20:47:44 +00:00

3.9 KiB

Access StarlingX Kubernetes

Local CLIs

  1. Log in to controller-0 via the console or SSH with a sysadmin/<sysadmin-password>.

  2. Acquire Keystone admin and Kubernetes admin credentials:

    source /etc/platform/openrc

StarlingX system and host management commands

Access StarlingX system and host management commands using the system command, for example:

[sysadmin@controller-0 ~(keystone_admin)]$ system host-list
+----+--------------+-------------+----------------+-------------+--------------+
| id | hostname     | personality | administrative | operational | availability |
+----+--------------+-------------+----------------+-------------+--------------+
| 1  | controller-0 | controller  | unlocked       | enabled     | available    |
+----+--------------+-------------+----------------+-------------+--------------+

Use the system help command for the full list of options.

StarlingX fault management commands

Access StarlingX fault management commands using the fm command, for example:

[sysadmin@controller-0 ~(keystone_admin)]$ fm alarm-list

Kubernetes commands

Access Kubernetes commands using the kubectl command, for example:

[sysadmin@controller-0 ~(keystone_admin)]$ kubectl get nodes
NAME           STATUS   ROLES    AGE     VERSION
controller-0   Ready    master   5d19h   v1.13.5

See https://kubernetes.io/docs/reference/kubectl/overview/ for details.

Remote CLIs

Documentation coming soon.

GUI

StarlingX Horizon GUI

Access the StarlingX Horizon GUI in your browser at the following address:

http://<oam-floating-ip-address>:8080

Log in to Horizon with an admin/<sysadmin-password>.

Kubernetes dashboard

The Kubernetes dashboard is not installed by default.

To install the Kubernetes dashboard:

  1. Use the kubernetes-dashboard helm chart from the stable helm repository with the override values shown below:

    cat <<EOF > dashboard-values.yaml
    service:
      type: NodePort
      nodePort: 30000
    
    rbac:
      create: true
      clusterAdminRole: true
    
    serviceAccount:
      create: true
      name: kubernetes-dashboard
    EOF
    
    helm helm repo update
    
    helm install stable/kubernetes-dashboard --name dashboard -f dashboard-values.yaml
  2. Create an admin-user service account with cluster-admin privileges, and display its token for logging into the Kubernetes dashboard.

    cat <<EOF > admin-login.yaml
    apiVersion: v1
    kind: ServiceAccount
    metadata:
      name: admin-user
      namespace: kube-system
    ---
    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: kube-system
    EOF
    
    kubectl apply -f admin-login.yaml
    
    kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep admin-user | awk '{print $1}')
  3. Access the Kubernetes dashboard GUI in your browser at the following address:

    https://<oam-floating-ip-address>:30000
  4. Log in with the admin-user TOKEN.

REST APIs

List the StarlingX platform-related public REST API endpoints using the following command:

openstack endpoint list | grep public

Use these URLs as the prefix for the URL target of StarlingX Platform Services' REST API messages.