Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Can we mount a hostPath ? #6

Open
cmoulliard opened this issue Jan 18, 2022 · 0 comments
Open

Question: Can we mount a hostPath ? #6

cmoulliard opened this issue Jan 18, 2022 · 0 comments

Comments

@cmoulliard
Copy link

Question

Can we mount a hostPath to kind ? Why such a question: The following config works pretty well on my laptop as the command is executed within the project containing the subpath /$ENGINE/wks but that will fail using this github action as as we cannot specify the working-directory.

Is there a way to pass en env var to specify the path to use to mount a hostPath which corresponds to the project checkout + ./$ENGINE/wks ?

apiVersion: kind.x-k8s.io/v1alpha4
kind: Cluster
containerdConfigPatches:
  - |-
    [plugins."io.containerd.grpc.v1.cri".registry.mirrors."kind-registry:5000"]
      endpoint = ["http://kind-registry:5000"]
nodes:
  - role: control-plane
    extraMounts:
      - hostPath: $(pwd)/wks ## DO NOT WORK USING A GITHUB FLOW ACTION
        containerPath: /workspace
    extraPortMappings:
      - containerPort: 80
        hostPort: 80
        protocol: TCP
      - containerPort: 443
        hostPort: 443
        protocol: TCP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant