kubernetes remote management setup guide

About Kubernetes CLI
The Kubernetes command-line tool, kubectl, is a single binary is a command line tool to manage one or more cluster. Using this kubectl CLI tool, you can
  1. Manage cluster resources like nodes, PV, ingress, namespaces and others.
  2. Manage application configuration like configmaps, PVC, defaults, limits.
  3. Deploy, remove, scale, update , expose application / services for users.
  4. Administer users and their roles.
  5. Look at application definitions and logs in near real-time.
Software Downloads and Configuration requirements..
It is assumed that you have a working Kubernetes cluster. If you have not done so, please contact your system administrator for the same. It is assumed that you have the latest (1.9.3 at the time of this writing) cluster. If this is not the case, then the output will differ a little. Please download the kubectl and add it to the PATH in order to use this tool from anywhere on your machine.

CLI by default looks for the file named config in the .kube folder in the user's home folder. On the Mac it is ~/.kube/config. This configuration file normally has the following sections,
  1. Clusters
  2. Contexts
  3. Current context
  4. Preferences
  5. Users
You can copy the sample configuration file given below and change the following to match your cluster settings...
  1. The URL of the API server: https://kube.example.com:6443 https://dev.example.com:6443
  2. The Certificate data for the https Client: client-certificate-data: REDACTED
  3. The Certificate Key for the https Client: client-key-data: REDACTED
  4. Namespace (optional): if not present it points to default namespace
  5. Current-context:Your default context.

Sample Configuration file..

apiVersion: v1
- cluster:
    insecure-skip-tls-verify: true
    server: https://kube.example.com:6443
  name: example-cluster
- cluster:
    insecure-skip-tls-verify: true
    server: https://dev.example.com:6443
  name: dev-cluster
- context:
    cluster: example-cluster
    namespace: default
    user: kubernetes-admin
  name: example-cluster
- context:
    cluster: dev-cluster
    user: kubernetes-admin
  name: dev
current-context: dev
kind: Config
preferences: {}
- name: kubernetes-admin
    client-certificate-data: REDACTED
    client-key-data: REDACTED
Developer's portal
For all those interested in developing and reading about technology and agile practices and techniques, we have a new Developer Portal..