mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Improve console outout formatting in service-accounts.md
This commit is contained in:
		@@ -66,15 +66,15 @@ You can access the API using a proxy or with a client library, as described in
 | 
				
			|||||||
Every namespace has a default service account resource called "default".
 | 
					Every namespace has a default service account resource called "default".
 | 
				
			||||||
You can list this and any other serviceAccount resources in the namespace with this command:
 | 
					You can list this and any other serviceAccount resources in the namespace with this command:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```
 | 
					```console
 | 
				
			||||||
kubectl get serviceAccounts
 | 
					$ kubectl get serviceAccounts
 | 
				
			||||||
$ NAME      SECRETS
 | 
					NAME      SECRETS
 | 
				
			||||||
default   1
 | 
					default   1
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
You can create additional serviceAccounts like this:
 | 
					You can create additional serviceAccounts like this:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```
 | 
					```console
 | 
				
			||||||
$ cat > /tmp/serviceaccount.yaml <<EOF
 | 
					$ cat > /tmp/serviceaccount.yaml <<EOF
 | 
				
			||||||
apiVersion: v1
 | 
					apiVersion: v1
 | 
				
			||||||
kind: ServiceAccount
 | 
					kind: ServiceAccount
 | 
				
			||||||
@@ -87,7 +87,7 @@ serviceacccounts/build-robot
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
If you get a complete dump of the service account object, like this:
 | 
					If you get a complete dump of the service account object, like this:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```
 | 
					```console
 | 
				
			||||||
$ kubectl get serviceacccounts/build-robot -o yaml
 | 
					$ kubectl get serviceacccounts/build-robot -o yaml
 | 
				
			||||||
apiVersion: v1
 | 
					apiVersion: v1
 | 
				
			||||||
kind: ServiceAccount
 | 
					kind: ServiceAccount
 | 
				
			||||||
@@ -115,7 +115,7 @@ You cannot update the service account of an already created pod.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
You can clean up the service account from this example like this:
 | 
					You can clean up the service account from this example like this:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```
 | 
					```console
 | 
				
			||||||
$ kubectl delete serviceaccount/build-robot
 | 
					$ kubectl delete serviceaccount/build-robot
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user