Comments (1)
On macOS for local testing, with Docker, I'm using a k3d
config like:
apiVersion: k3d.io/v1alpha5
kind: Simple
metadata:
name: my-cluster
servers: 1
agents: 1
ports:
- port: 8080:80
nodeFilters:
- loadbalancer
- port: 8443:443
nodeFilters:
- loadbalancer
registries:
create:
name: my-cluster.registry
host: "0.0.0.0"
hostPort: "8500"
options:
k3d:
wait: true
k3s:
extraArgs:
- arg: --disable=traefik
nodeFilters:
- server:*
For exposing multiple services I'm using Contour with Envoy as a Deployment with HTTPProxy Inclusion. Depending if you also want to use TLS or not, you may need to look into Contour's disablePermitInsecure: false
configuration option. For me that seemed easier to support services in multiple namespaces than trying out the Gateway API for the first time.
I update my /etc/hosts
and generate certs with minica
so I can access different services with URLs like https://kubernetes-dashboard.my-cluster.localdomain:8443. There isn't a complete example for me to share as my setup is code generated with some internal tools, e.g., scripts used by kustomize --enable-alpha-plugins --enable-exec
for things like config values and secrets.
Scripting the cluster creation was helpful as I think I encountered k3d loadbalancing/networking to get in a bad state, so I've had to recreate the cluster a few times.
Finally, to save my laptop's CPU I run database outside of Docker directly in macOS. For workloads to access it directly through the host.k3d.internal
hostname via ExternalName service, the enableExternalNameService: true
contour configuration also has to be added.
from k3d.
Related Issues (20)
- [BUG] Unable to start a stopped multi-server cluster
- KylinOS dont install k3d success HOT 1
- [BUG] add node "Host Gateway IP is missing! " use remote cluster HOT 1
- [QUESTION/HELP] Installing NVIDIA GPU operator on a k3d cluster
- [BUG] coredns-custom ConfigMap somehow causes "no such host" error HOT 4
- [QUESTION/HELP] DNS-Resolution inside Pods is not working (related to CoreDNS File-Plugin?) HOT 2
- [BUG] Unable to resolve host address HOT 1
- [BUG] Documentation for kubeconfig write doesn't match actual behaviour
- [BUG] Cannot install k3d v5.5.1 using Go 1.22.x due to `replace` directive
- [BUG] Several vulnerabilites found within the `k3d-proxy` docker image.
- [BUG] nixpkgs build failure (since 5.6.2) HOT 1
- [FEATURE] Automatically use the default k3d-default.yaml file if present in current directory
- [BUG] k3d config migrate $in [$out], options.kubeconfig shenanigans
- [BUG] Entrypoint fixing scripts fail on k3s 1.30.3-k3s1 due to missing in-image busybox xargs applet
- [BUG] error waiting for log line k3s is up and running HOT 6
- [BUG] Vulnerability in docker v27.03 used in k3d
- [BUG] Unable to add node to remote cluster due to DNS issue
- [BUG] `k3d image import`: prints out success message even if it fails
- Invalid memory address runtime error when adding node to remote cluster HOT 2
- [BUG] After the k3d cluster is restarted, the Naked Pod on the server node is automatically removed. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k3d.