This message was deleted.
# k3d
a
This message was deleted.
h
So are you behind some kind of corporate proxy? Are there some logs you can provide?
Generally if you're behind a proxy you should use
k3d cluster create --config cluster-config.yaml
Copy code
# cluster-config.yaml
apiVersion: <http://k3d.io/v1alpha4|k3d.io/v1alpha4>
kind: Simple
metadata:
  name: my-cluster
env:
  - envVar: all_proxy=${all_proxy}
    nodeFilters:
      - server:*
  - envVar: ALL_PROXY=${ALL_PROXY}
    nodeFilters:
      - server:*
  - envVar: http_proxy=${http_proxy}
    nodeFilters:
      - server:*
  - envVar: HTTP_PROXY=${HTTP_PROXY}
    nodeFilters:
      - server:*
  - envVar: https_proxy=${https_proxy}
    nodeFilters:
      - server:*
  - envVar: HTTPS_PROXY=${HTTPS_PROXY}
    nodeFilters:
      - server:*
  - envVar: no_proxy=${no_proxy}
    nodeFilters:
      - server:*
  - envVar: NO_PROXY=${NO_PROXY}
    nodeFilters:
      - server:*
or if you don't want to create a config file
k3d cluster create -e "HTTPS_PROXY=${HTTPS_PROXY}@server:*" -e "HTTP_PROXY=${HTTPS_PROX}@server:*" ...
a
Thanks for the reply. I need to use the nexus repository for this, so not the proxy. So i want to see in the logs this: Trying to pull repository myownnexus/k3d-io/k3d-tools:5.4.9 instead of this: try to pull repository ghcr.io/k3d-io/k3dtools:5.4.9
h
for this the config should look a bit like this:
Copy code
# cluster-config.yaml
apiVersion: <http://k3d.io/v1alpha4|k3d.io/v1alpha4>
kind: Simple
metadata:
  name: my-cluster
registries:
  config: |
    mirrors:
      <http://ghcr.io|ghcr.io>:
        endpoint:
          - <https://myownnexus>
note that I'm assuming
myownnexus
is a domain without a path If you do need to change the path you will need to use "rewrites" which are not supported in
k3d
right now (pending PR)
164 Views