github.com/Azure/aad-pod-identity@v1.8.17/test/load/deployment-template.yml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    name: {{.Name}}
     5    labels:
     6      group: {{.Group}}
     7      aadpodidbinding: loadtest
     8  spec:
     9    replicas: {{.Replicas}}
    10    selector:
    11      matchLabels:
    12        name: {{.Name}}
    13    template:
    14      metadata:
    15        labels:
    16          name: {{.Name}}
    17          group: {{.Group}}
    18          aadpodidbinding: loadtest
    19      spec:
    20        terminationGracePeriodSeconds: 0
    21        initContainers:
    22          - name: init
    23            image: mcr.microsoft.com/azure-cli
    24            command:
    25              - sh
    26              - -c
    27              - az login --identity --allow-no-subscriptions && az login -i -u $POD_IDENTITY_CLIENT_ID --allow-no-subscriptions
    28        containers:
    29        - image: k8s.gcr.io/pause-amd64:3.1
    30          name: {{.Name}}
    31        tolerations:
    32        - key: "node.kubernetes.io/not-ready"
    33          operator: "Exists"
    34          effect: "NoExecute"
    35          tolerationSeconds: 900
    36        - key: "node.kubernetes.io/unreachable"
    37          operator: "Exists"
    38          effect: "NoExecute"
    39          tolerationSeconds: 900