In kubernetes 1.22 PSP (Pod Security Policies) is depricated. Here are the relevant docs extracted from kubernetes/website#28903
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| name: kube-explorer | |
| namespace: kube-system | |
| labels: | |
| app: kube-explorer | |
| --- | |
| kind: ClusterRoleBinding |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace: fleet-helm-example | |
| helm: | |
| releaseName: kyverno-test | |
| chart: "https://github.com/lalyos/kyverno-chart/archive/master.zip" |
Generate svg diagrams from k8s manifest files
generate dot file from manifest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "orders":[ | |
| { | |
| "id": 1, | |
| "user": "lalyos", | |
| "food": "pacal" | |
| }, | |
| { | |
| "id": 2, | |
| "user": "geza", |
Sometimes a very simple prompt is useful - like creating documentation, or github issues. In those cases its still important to be able to tell the k8s context/ns
white [ctx/ns]
PS1='[$(kubectl config view --minify -o jsonpath="{.contexts[0].name}:{.contexts[0].context.namespace}")]$ '
orange [ns]
Fake/Quick rest api prototype by combinig:
- json-server for rest api
- restangular for admin UI
docker run -d \
--name json-server \
-p 3000:3000 \
lalyos/json-server https://gist.githubusercontent.com/lalyos/2be21105e3607b4981c85a542cedc7fc/raw/issues.json