mirror of
https://github.com/helm/charts.git
synced 2026-08-20 12:57:55 +00:00
Signed-off-by: Giacomo Guiulfo <giacomoguiulfo@gmail.com>
28 lines
783 B
YAML
28 lines
783 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: {{ template "cloudserver.fullname" . }}-test
|
|
annotations:
|
|
"helm.sh/hook": test-success
|
|
spec:
|
|
containers:
|
|
- name: {{ template "cloudserver.fullname" . }}-test
|
|
imagePullPolicy: IfNotPresent
|
|
image: "docker.io/mesosphere/aws-cli:1.14.5"
|
|
command:
|
|
- sh
|
|
- -c
|
|
- aws s3 --endpoint-url=http://{{ include "cloudserver.fullname" . }} --region=us-east-1 ls
|
|
env:
|
|
- name: AWS_ACCESS_KEY_ID
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: {{ template "cloudserver.fullname" . }}
|
|
key: accessKey
|
|
- name: AWS_SECRET_ACCESS_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: {{ template "cloudserver.fullname" . }}
|
|
key: secretKey
|
|
restartPolicy: Never
|