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: