-
Notifications
You must be signed in to change notification settings - Fork 13
/
aadpodidentity-deployment.yaml
39 lines (39 loc) · 1.09 KB
/
aadpodidentity-deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: demo
aadpodidbinding: secdemoaadbindingselector
name: demo
namespace: default
spec:
template:
metadata:
labels:
app: demo
aadpodidbinding: secdemoaadbindingselector
spec:
containers:
- name: demo
image: "mcr.microsoft.com/k8s/aad-pod-identity/demo:1.2"
imagePullPolicy: Always
args:
- "--subscriptionid=dummy"
- "--clientid=dummy"
- "--resourcegroup=dummy"
# TO SPECIFY NAME OF RESOURCE TO GRANT TOKEN ADD --aad-resourcename
# this demo defaults aad-resourcename to https://management.azure.com/
# e.g. - "--aad-resourcename=https://vault.azure.net"
env:
- name: MY_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: MY_POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: MY_POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP