Skip to content

Commit

Permalink
Merge pull request #68 from pipo02mix/pod_annotation
Browse files Browse the repository at this point in the history
Add pod annotation to appmesh-controller deployment
  • Loading branch information
nckturner authored Feb 19, 2020
2 parents cee18f5 + fff155d commit 2b53f1c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions stable/appmesh-controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ Parameter | Description | Default
`resources.limits/memory` | pod memory limit | `1Gi`
`affinity` | node/pod affinities | None
`nodeSelector` | node labels for pod assignment | `{}`
`podAnnotations` | annotations to add to each pod | `{}`
`tolerations` | list of node taints to tolerate | `[]`
`rbac.create` | if `true`, create and use RBAC resources | `true`
`rbac.pspEnabled` | If `true`, create and use a restricted pod security policy | `false`
Expand Down
5 changes: 5 additions & 0 deletions stable/appmesh-controller/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ spec:
app.kubernetes.io/part-of: appmesh
annotations:
prometheus.io/scrape: "true"
{{- if .Values.podAnnotations }}
{{- range $key, $value := .Values.podAnnotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
spec:
serviceAccountName: {{ template "appmesh-controller.serviceAccountName" . }}
containers:
Expand Down

0 comments on commit 2b53f1c

Please sign in to comment.