k8s.io/perf-tests/clusterloader2@v0.0.0-20240304094227-64bdb12da87e/testing/access-tokens/deployment.yaml (about) 1 {{$name := .Name}} 2 3 apiVersion: apps/v1 4 kind: Deployment 5 metadata: 6 name: {{.Name}} 7 labels: 8 group: access-tokens 9 spec: 10 selector: 11 matchLabels: 12 group: access-tokens 13 name: {{.Name}} 14 replicas: {{.Replicas}} 15 template: 16 metadata: 17 labels: 18 group: access-tokens 19 name: {{.Name}} 20 spec: 21 imagePullPolicy: Always 22 containers: 23 - name: access-tokens 24 image: gcr.io/k8s-testimages/perf-tests-util/access-tokens:v0.0.6 25 args: 26 {{range $tokenId := Loop .Tokens}} 27 - --access-token-dirs=/var/tokens/{{$name}}-{{$tokenId}} 28 {{end}} 29 - --namespace={{.Namespace}} 30 - --qps-per-worker={{.QpsPerWorker}} 31 resources: 32 requests: 33 cpu: {{AddInt 10 (MultiplyFloat .Tokens .QpsPerWorker)}}m # 1mCpu per Token * per QPS 34 memory: {{AddInt 50 (MultiplyInt .Tokens 5)}}Mi 35 volumeMounts: 36 {{range $j := Loop .Tokens}} 37 - name: {{$name}}-{{$j}} 38 mountPath: /var/tokens/{{$name}}-{{$j}} 39 {{end}} 40 volumes: 41 {{range $j := Loop .Tokens}} 42 - name: {{$name}}-{{$j}} 43 secret: 44 secretName: {{$name}}-{{$j}} 45 {{end}}