forked from rcurrie/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpod.yml
33 lines (33 loc) · 754 Bytes
/
pod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
apiVersion: v1
kind: Pod
metadata:
name: $USER-pod
spec:
containers:
- name: $USER-container
image: robcurrie/ubuntu
imagePullPolicy: Always
command: ["sleep"]
args: ["infinity"]
env:
- name: AWS_S3_ENDPOINT
value: "http://rook-ceph-rgw-rooks3.rook"
volumeMounts:
- name: "prp-s3-credentials"
mountPath: "/root/.aws/credentials"
subPath: "credentials"
- name: "prp-s3-credentials"
mountPath: "/root/.s3cfg"
subPath: ".s3cfg"
resources:
requests:
cpu: "1"
memory: "1Gi"
limits:
cpu: "2"
memory: "2Gi"
restartPolicy: Never
volumes:
- name: prp-s3-credentials
secret:
secretName: prp-s3-credentials