From 1020a8ff86d1e3d1ada0c2ff5c5e622c2bf4031d Mon Sep 17 00:00:00 2001 From: Jerome Petazzoni Date: Sun, 30 Sep 2018 17:43:18 -0500 Subject: [PATCH 1/3] kube-ps1 is cool and we should mention it --- slides/k8s/namespaces.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/slides/k8s/namespaces.md b/slides/k8s/namespaces.md index f4c949a8..06071e26 100644 --- a/slides/k8s/namespaces.md +++ b/slides/k8s/namespaces.md @@ -227,3 +227,21 @@ Note: it might take a minute or two for the app to be up and running. - On our clusters, they are installed as `kns` and `kctx` (for brevity and to avoid completion clashes between `kubectx` and `kubectl`) + +--- + +## `kube-ps1` + +- It's easy to lose track of our current cluster / context / namespace + +- `kube-ps1` makes it easy to track these, by showing them in our shell prompt + +- It's a simple shell script availble from https://github.com/jonmosco/kube-ps1 + +- On our clusters, `kube-ps1` is installed and included in `PS1`: + ``` + [123.45.67.89] `(kubernetes-admin@kubernetes:default)` docker@node1 ~ + ``` + (The highlighted part is `context:namespace`, managed by `kube-ps1`) + +- Highly recommended if you work across multiple contexts or namespaces! From 56ad2845e72ee1744f5fd28847a4640c1eddfac2 Mon Sep 17 00:00:00 2001 From: Bridget Kromhout Date: Sun, 30 Sep 2018 20:52:24 -0400 Subject: [PATCH 2/3] Updating Bridget's links --- slides/k8s/links-bridget.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/slides/k8s/links-bridget.md b/slides/k8s/links-bridget.md index f01f2011..464c5969 100644 --- a/slides/k8s/links-bridget.md +++ b/slides/k8s/links-bridget.md @@ -1,15 +1,13 @@ # Links and resources -- [Kubernetes Community](https://kubernetes.io/community/) - Slack, Google Groups, meetups - -- [Kubernetes on StackOverflow](https://stackoverflow.com/questions/tagged/kubernetes) - -- [Play With Kubernetes Hands-On Labs](https://medium.com/@marcosnils/introducing-pwk-play-with-k8s-159fcfeb787b) +- [Microsoft Learn](https://docs.microsoft.com/learn/) - [Azure Kubernetes Service](https://docs.microsoft.com/azure/aks/) - [Cloud Developer Advocates](https://developer.microsoft.com/advocates/) +- [Kubernetes Community](https://kubernetes.io/community/) - Slack, Google Groups, meetups + - [Local meetups](https://www.meetup.com/) - [devopsdays](https://www.devopsdays.org/) From 8722de6da2f2071db66df76e365c281cbd296f54 Mon Sep 17 00:00:00 2001 From: Bridget Kromhout Date: Sun, 30 Sep 2018 20:54:31 -0400 Subject: [PATCH 3/3] Update namespaces.md --- slides/k8s/namespaces.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slides/k8s/namespaces.md b/slides/k8s/namespaces.md index 06071e26..d9efb808 100644 --- a/slides/k8s/namespaces.md +++ b/slides/k8s/namespaces.md @@ -236,7 +236,7 @@ Note: it might take a minute or two for the app to be up and running. - `kube-ps1` makes it easy to track these, by showing them in our shell prompt -- It's a simple shell script availble from https://github.com/jonmosco/kube-ps1 +- It's a simple shell script available from https://github.com/jonmosco/kube-ps1 - On our clusters, `kube-ps1` is installed and included in `PS1`: ```