Changes

Jump to navigation Jump to search
no edit summary
NAME TYPE DATA AGE
<A_Name_For_Your_Secret> kubernetes.io/dockerconfigjson 1 17d
</syntaxhighlight>
 
Now, whenever you are submitting a pod or a job you should reference your secret at container level of your yaml file:
 
<syntaxhighlight lang="bash">
apiVersion: v1
kind: Pod
metadata:
name: busybox-test-pod
spec:
containers:
- name: busybox
image: ccu-k8s.inf.uni-konstanz.de:32250/<your.username>/my_busybox
command: ["sleep", "1d"]
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 1
memory: 1Gi
volumeMounts:
- mountPath: /abyss/home
name: cephfs-home
readOnly: false
- mountPath: /abyss/shared
name: cephfs-shared
readOnly: false
- mountPath: /abyss/datasets
name: cephfs-datasets
readOnly: true
imagePullSecrets: #Secret to your repository here
- name: <A_Name_For_Your_Secret> #Name you have chosen for your secret
volumes:
- name: cephfs-home
hostPath:
path: "/cephfs/abyss/home/<your-username>"
type: Directory
- name: cephfs-shared
hostPath:
path: "/cephfs/abyss/shared"
type: Directory
- name: cephfs-datasets
hostPath:
path: "/cephfs/abyss/datasets"
type: Directory
</syntaxhighlight>
ccu
14
edits

Navigation menu