https://flyte.org logo
#flyte-deployment
Title
# flyte-deployment
f

Fredrick

10/14/2022, 4:54 PM
Hi team, The default-pod-template does not add volumeMounts to flyte containers. Can this be supported ? Here is my pod-template. The volumeMounts
scratch-volume
does not get added to the flyte containers.
Copy code
apiVersion: v1
kind: PodTemplate
metadata:
  name: flyte-pod-template
  namespace: flyte
template:
  metadata:
    labels:
      app: flyte
  spec:
    containers:
    - name: default
      image: <http://docker.io/rwgrim/docker-noop|docker.io/rwgrim/docker-noop>
      volumeMounts:
      - mountPath: /scratch
        name: scratch-volume
    volumes:
    - name: scratch-volume
      emptyDir: {}
d

Dan Rammer (hamersaw)

10/14/2022, 4:57 PM
This is very interesting. Can you confirm that the volumes are added to the Pod? Also what version of FlytePropeller are you running? Support for container level configuration has been a relatively recent development.
it looks like the 1.38 release is when this support landed.
f

Fredrick

10/14/2022, 5:06 PM
ah okay, we are running
v1.1.8
i ll upgrade and see if it works
Yes the volumes are added to pod but not the volumeMounts for the containers
d

Dan Rammer (hamersaw)

10/14/2022, 5:11 PM
OK, so the PodTemplate functionality is working correct. I suspect the version upgrade will solve the problem. Please let me know how this works!
30 Views