i want to use command: - wget to download a file and put in a volume gunzip since it is a gz format. but somehow the container fails as soon as i hit the kubectl apply -f command. the Pod status displays Error. what could i be doing wrong?
apiVersion: apps/v1
kind: Deployment
metadata:
name: example-app
labels:
app: example-app
spec:
replicas: 1
selector:
matchLabels:
app: example-app
template:
metadata:
labels:
app: example-app
spec:
containers:
- name: example-app
image: docker.source.co.za/azp/example-app:1
imagePullPolicy: Always
command:
- wget
- "-O"
- http://confluence.source.co.za/download/attachments/627674073/refpolicies.tar.gz
volumeMounts:
- name: example-app
mountPath: /config/
readOnly: true
volumes:
- name: example-app
emptyDir: {}