Skip to content

Instantly share code, notes, and snippets.

View saiwas's full-sized avatar
:electron:
Hi there ~

Johnny saiwas

:electron:
Hi there ~
View GitHub Profile
@saiwas
saiwas / k8s-update-secret.md
Created November 13, 2018 09:15 — forked from dleske/k8s-update-secret.md
k8s: Updating a Secret

Hopefully helped another k8s newbie with the following. The question was, how do you update a single key in a secret in k8s? I don't know anything about secrets but I will probably want to know this in the future, so here we go.

First, to create a dummy secret:

apiVersion: v1
kind: Secret
metadata:
  name: test-secret
data:

Export K8s Dashboard

kubectl proxy

If you are using local to access the dashboard:

  1. Copy $HOME/.kube/config in your Master machine
  2. Phase it into $HOME/.kube/config in your local machine
  3. Run kubectl proxy in your local machine
  4. Visit http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy in your browser

HELM

After we installed the k8s, we would like to install helm for managing Kubernetes charts.

We can Use Helm to:

  • Find and use popular software packaged as Helm charts to run in Kubernetes
  • Share your own applications as Helm charts
  • Create reproducible builds of your Kubernetes applications
  • Intelligently manage your Kubernetes manifest files
@saiwas
saiwas / Install-k8s-ubuntu.md
Last active September 24, 2018 05:58
Install Kubernetes on Ubuntu

Install k8s

Prepare Machines

Prepare 2 or more VMs, one is the Master Host, the others are the Nodes. The spec are:

  • 2 GB RAM
  • 2 Cores of CPU

Configrate & Install k8s in VMs