Last active
January 20, 2024 17:10
-
-
Save YurgenUA/f37152c69d64fcca80b2367851da2846 to your computer and use it in GitHub Desktop.
This file contains 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
kubectl exec -it -n playground demo-dp-7756f78b4c-5glk8 -- /bin/bash | |
>>root@demo-dp-7756f78b4c-5glk8:/# ls /etc/sensitive/ | |
>>password username | |
>>root@demo-dp-7756f78b4c-5glk8:/# cat /etc/sensitive/username ; echo | |
>>Nutzername | |
>>root@demo-dp-7756f78b4c-5glk8:/# cat /etc/sensitive/password ; echo | |
>>Losungwort | |
>>root@demo-dp-7756f78b4c-5glk8:/# kubectl get secret top-secret-ks -n playground | |
>>Error from server (Forbidden): secrets "top-secret-ks" is forbidden: User "system:serviceaccount:playground:secret-privileged-sa" cannot get resource "secrets" in API group "" in the namespace "playground" | |
>>root@demo-dp-7756f78b4c-5glk8:/# exit | |
>>exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment