Yes, through the workingDir field workingDir the container specification . Here's an example of a replication controller with a nginx container with workingDir set to /workdir :
apiVersion: v1 kind: ReplicationController metadata: name: nginx spec: replicas: 1 template: metadata: labels: name: nginx spec: containers: - name: nginx image: mynginximage workingDir: /workdir
source share