gifted-motorcycle-96530
10/25/2022, 7:23 PMk3d
and trying to convert a shell script with (literally) ~25 port settings, all for @server[0]
to a YAML file.
From my read I would need to create a YAML that looks like this (my example is incomplete, just focused on the port
and nodeFilters
elements):
apiVersion: <http://k3d.io/v1alpha4|k3d.io/v1alpha4>
kind: Simple
ports:
- port 123:456
nodeFilters:
- server:0
- port 234:567
nodeFilters:
- server:0
- port 345:678
nodeFilters:
- server:0
- ...
Do I understand correctly?
Is there a way to specify:
1. A nodeFilters
that would apply to ALL ports,
2. A default nodeFilters
that can be overridden if needed, and/or
3. Be able to create a group of ports and then apply the node filters to the group?
Thank you in advance for the help.wide-garage-9465
10/25/2022, 7:34 PM:
there), so you cannot merge them all into a single item
2. there's no default node filter unfortunately, at least if you have more than one single node
3. we support port-ranges, but with your example, that won't workgifted-motorcycle-96530
10/25/2022, 7:36 PMwide-garage-9465
10/25/2022, 7:51 PMgifted-motorcycle-96530
10/25/2022, 7:52 PMk3d cluster \
create "${KUBE_CLUSTER_NAME}" \
-p 9001:30001@server[0] `# state-svc` \
-p 9999:30002@server[0] `# state-svc-graphql` \
-p 40001:30003@server[0] `# state-svc-dlv` \
-p 8002:30004@server[0] `# maildev` \
-p 9000:30005@server[0] `# license-svc` \
-p 5432:30006@server[0] `# postgres` \
-p 8081:30007@server[0] `# keycloak` \
-p 8082:30008@server[0] `# studio` \
-p 8100:30009@server[0] `# kafka-ui` \
-p 8005:30010@server[0] `# minio-server` \
-p 8006:30028@server[0] `# minio-ui` \
-p 9090:30011@server[0] `# prometheus-ui` \
-p 3000:30012@server[0] `# grafana-ui` \
-p 40002:30015@server[0] `# jobworker-dlv` \
-p 40003:30016@server[0] `# licensesvc-dlv` \
-p 16686:30018@server[0] `# jaeger-ui` \
-p 8083:30019@server[0] `# cortex` \
-p 8084:30020@server[0] `# cortex tenant` \
-p 8085:30021@server[0] `# cortex nginx gateway` \
-p 15000:30023@server[0] `# azurite-blob` \
-p 8080:30024@server[0] `# apisvc-gateway ngnix` \
-p 25:30025@server[0] `# maildev-smtp` \
-p 9002:30031@server[0] `# auth-svc` \
-p 30026:30026@server[0] `# cellagent` \
-p 30027:30027@server[0] `# cellagent-ui` \
-p 8086:30086@server[0] `# swagger-ui` \
-p 8087:30087@server[0] `# swagger-editor` \
--no-lb \
--registry-use k3d-registry.localhost:5000 \
--registry-config "${KUBE_REGISTRIES}" \
--image rancher/k3s:v1.23.8-k3s1 \
--k3s-server-arg '--kube-proxy-arg=conntrack-max-per-core=0'
/path/to/config.yaml
anywhere in the YAML.
Is this the correct syntax, or something else?
registries:
config: /path/to/config.yaml
wide-garage-9465
10/25/2022, 8:10 PMgifted-motorcycle-96530
10/25/2022, 8:10 PM