Completed upto lesson 28
This commit is contained in:
25
lab/serviceaccount-token-answer.yaml
Normal file
25
lab/serviceaccount-token-answer.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: checkout
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: checkout-api
|
||||
namespace: checkout
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: checkout
|
||||
namespace: checkout
|
||||
labels:
|
||||
app: checkout
|
||||
spec:
|
||||
automountServiceAccountToken: false
|
||||
serviceAccountName: checkout-api
|
||||
containers:
|
||||
- name: checkout
|
||||
image: busybox:1.37
|
||||
command: ["sh", "-c", "sleep 3600"]
|
||||
Reference in New Issue
Block a user