Last active
May 17, 2023 08:41
-
-
Save AndrienkoAleksandr/70cda866d5b9602cb17b51366bb1c890 to your computer and use it in GitHub Desktop.
minio ls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: minio-mc | |
namespace: tekton-results | |
spec: | |
serviceAccount: default | |
containers: | |
- name: mc | |
image: >- | |
quay.io/minio/mc:RELEASE.2023-01-28T20-29-38Z | |
command: | |
- /bin/bash | |
args: | |
- '-c' | |
- | | |
mc --config-dir /tmp config host add minio "$S3_ENDPOINT" "$S3_ACCESS_KEY_ID" "$S3_SECRET_ACCESS_KEY"; | |
mc --config-dir /tmp ls minio; | |
tail -f /dev/null | |
imagePullPolicy: Always | |
volumeMounts: | |
- name: ca-s3 | |
mountPath: /etc/ssl/certs/minio-cert.crt | |
subPath: minio-cert.crt | |
env: | |
- name: S3_ACCESS_KEY_ID | |
valueFrom: | |
secretKeyRef: | |
key: aws_access_key_id | |
name: tekton-results-s3 | |
- name: S3_SECRET_ACCESS_KEY | |
valueFrom: | |
secretKeyRef: | |
key: aws_secret_access_key | |
name: tekton-results-s3 | |
- name: S3_REGION | |
valueFrom: | |
secretKeyRef: | |
key: aws_region | |
name: tekton-results-s3 | |
- name: S3_BUCKET_NAME | |
valueFrom: | |
secretKeyRef: | |
key: bucket | |
name: tekton-results-s3 | |
- name: S3_ENDPOINT | |
valueFrom: | |
secretKeyRef: | |
key: endpoint | |
name: tekton-results-s3 | |
volumes: | |
- name: ca-s3 | |
secret: | |
secretName: storage-tls | |
items: | |
- key: public.crt | |
path: minio-cert.crt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment