Skip to content

Commit 34ca783

Browse files
committed
add secrets notes
1 parent ce77364 commit 34ca783

File tree

7 files changed

+34
-0
lines changed

7 files changed

+34
-0
lines changed

commands-and-args/notes.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
commmand field in the po defintion corresponds to entrypoint field in docker and while args field corresponds to the CMD field in docker

commands-and-args/pod-definition.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: ubuntu-sleeper
5+
labels:
6+
type: sleeper
7+
spec:
8+
containers:
9+
- image: ubuntu
10+
command: ["sleep"]
11+
args: ["10"]

config-maps/.notes.md.swp

12 KB
Binary file not shown.

config-maps/app-config.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: v1
2+
kind: ConfigMap
3+
metadata:
4+
name: app-config
5+
data:
6+
APP_COLOR: BLUE

config-maps/notes.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## Importat commands
2+
3+
4+
`kubectl create configmap app-config --from-literal=<KEY>=<VALUE>`
5+
6+
envFrom in the corresponding pod defintion file is an array field, this makes sense be cuase you can specify muktile config maps in a pod. `:wq
7+

namespaces/note.md

+8
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,11 @@ count the nnumber of namespaces on a cluster
1414
get pods or another object type in all namespaces on a cluster
1515

1616
`kubectl get pods --all-namespaces | grep <specific pod>`
17+
18+
short form for all namesapces is `A`
19+
20+
k8s creates a `kubesystem` namespace to isolate k8s resources from the user, preventing an accidental deletion of k8s resources.
21+
22+
resources that should be available to all users are in the kube public namespace.
23+
24+

resource-qouta/notes.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
limits computes resources by namespaces.

0 commit comments

Comments
 (0)