Skip to content

Instantly share code, notes, and snippets.

@philipz
Created January 18, 2024 01:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philipz/755f909ada4fdbbcfbbdb932fc6a1443 to your computer and use it in GitHub Desktop.
Save philipz/755f909ada4fdbbcfbbdb932fc6a1443 to your computer and use it in GitHub Desktop.
Kind config for ingress and volume
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
  extraMounts:
  - hostPath: /Users/YOURNAME/lab/kind
    containerPath: /home/kind
  extraPortMappings:
  ## expose port 31080 of the node to port 80 on the host
  - containerPort: 31080
    hostPort: 80
   ## expose port 31443 of the node to port 443 on the host
  - containerPort: 31443
    hostPort: 443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment