modified: README.md
This commit is contained in:
1 parent
4e914398fd
commit
060ea17354
1 file changed
+41
-2
@@ -2,6 +2,7 @@
|
||||
|
||||
Kubernetes is an open‑source platform that automates the deployment, scaling, and management of containerized applications. It acts as an orchestrator, ensuring your containers run reliably across clusters of machines, handling networking, storage, and updates without downtime.
|
||||
|
||||
- [kubernetes](#kubernetes)
|
||||
- [Namespaces](#namespaces)
|
||||
- [Create namespace](#create-namespace)
|
||||
- [namespace stuck on delete](#namespace-stuck-on-delete)
|
||||
@@ -14,7 +15,7 @@ Kubernetes is an open‑source platform that automates the deployment, scaling,
|
||||
- [OOMKilled](#oomkilled)
|
||||
- [Attach to an pod](#attach-to-an-pod)
|
||||
- [Run command on pod](#run-command-on-pod)
|
||||
- [Container TTY](#container-tty)
|
||||
- [Keep pod Alive](#keep-pod-alive)
|
||||
- [Persistent volumes](#persistent-volumes)
|
||||
- [create PersistentVolumes - host path](#create-persistentvolumes---host-path)
|
||||
- [find persistent volume used pvc](#find-persistent-volume-used-pvc)
|
||||
@@ -28,11 +29,13 @@ Kubernetes is an open‑source platform that automates the deployment, scaling,
|
||||
- [network testing](#network-testing)
|
||||
- [Resources](#resources)
|
||||
- [Services Accounts](#services-accounts)
|
||||
- [configMap](#configmap)
|
||||
- [Secrets](#secrets)
|
||||
- [Manifest - Opaque / Base64](#manifest---opaque--base64)
|
||||
- [Manifest - StringData](#manifest---stringdata)
|
||||
- [Inline with heredoc and environment variables](#inline-with-heredoc-and-environment-variables)
|
||||
- [substr](#substr)
|
||||
- [mounting](#mounting)
|
||||
- [annotations](#annotations)
|
||||
- [nodes](#nodes)
|
||||
- [taints](#taints)
|
||||
@@ -336,7 +339,11 @@ POD_NAME=$(kubectl get pod -l app=$MY_APP_NAME -n $NAMESPACE -o jsonpath='{.item
|
||||
kubectl exec -n $NAMESPACE -it ${POD_NAME} -- sh
|
||||
```
|
||||
|
||||
### Container TTY
|
||||
### Keep pod Alive
|
||||
|
||||
```yaml
|
||||
command: ["tail", "-f", "/dev/null"]
|
||||
```
|
||||
|
||||
```yaml
|
||||
...
|
||||
@@ -582,6 +589,20 @@ kubectl get secret <secret_name> -o jsonpath='{.data.token}' | base64 -d > ./ser
|
||||
kubectl config view --raw -o jsonpath='{.clusters[0].cluster.certificate-authority-data}'
|
||||
```
|
||||
|
||||
## configMap
|
||||
|
||||
```yaml
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: my-config
|
||||
data:
|
||||
app.conf: |
|
||||
key=value
|
||||
nested/file.txt: |
|
||||
hello
|
||||
```
|
||||
|
||||
## Secrets
|
||||
|
||||
### Manifest - Opaque / Base64
|
||||
@@ -659,6 +680,24 @@ envsubst < ./secret.yaml | kubectl apply -f -
|
||||
|
||||
```
|
||||
|
||||
### mounting
|
||||
|
||||
``` yaml
|
||||
|
||||
volumeMounts:
|
||||
- name: secret-name
|
||||
mountPath: /secret
|
||||
subPath: mySecret
|
||||
|
||||
volumes:
|
||||
- name: secret-name
|
||||
secret:
|
||||
secretName: secret-name
|
||||
# required if secret is ah ssh identity
|
||||
# defaultMode: 0400
|
||||
|
||||
```
|
||||
|
||||
## annotations
|
||||
|
||||
``` bash
|
||||
|
||||
Reference in new issue
Block a user