Skip to content

Commit

Permalink
Migrate to IAM role for service account
Browse files Browse the repository at this point in the history
  • Loading branch information
dbelev committed Aug 22, 2022
1 parent 382056d commit e59aadb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
11 changes: 1 addition & 10 deletions helm/content-rw-elasticsearch/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ spec:
values:
- {{ .Values.service.name }}
topologyKey: "kubernetes.io/hostname"
serviceAccountName: {{ .Values.serviceAccountName }}
containers:
- name: {{ .Values.service.name }}
image: "{{ .Values.image.repository }}:{{ .Chart.Version }}"
Expand All @@ -53,16 +54,6 @@ spec:
configMapKeyRef:
name: global-config
key: msk.kafka.broker.url
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: global-secrets
key: aws.access_key_id
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: global-secrets
key: aws.secret_access_key
- name: PUBLIC_CONCORDANCES_ENDPOINT
value: "{{ .Values.env.PUBLIC_CONCORDANCES_ENDPOINT }}"
- name: "BASE_API_URL"
Expand Down
1 change: 1 addition & 0 deletions helm/content-rw-elasticsearch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ env:
KAFKA_TOPIC: ""
PUBLIC_CONCORDANCES_ENDPOINT: ""
ELASTICSEARCH_SAPI_INDEX: "ft-v1"
serviceAccountName: eksctl-content-rw-elasticsearch-serviceaccount

0 comments on commit e59aadb

Please sign in to comment.