Kubernetes 指定 working_dir

使用 workingDir 如下:


apiVersion: v1
kind: ReplicationController
metadata:
  name: example
spec:
  replicas: 1
  template:
    metadata:
      labels:
        name: example
    spec:
      containers:
        - name: example
          image: alpine:3.10
          workingDir: /yourworkdir