polite-engineer-55788
08/10/2022, 2:08 PM+ /kaniko/executor --context /drone/src --dockerfile Dockerfile --customPlatform=linux/amd64 --customPlatform=linux/arm64 --destination $DESTINATION_IMAGE --digest-file /tmp/images/image-digest --insecure --skip-tls-verify\n
error checking push permissions -- make sure you entered the correct tag name, and that you are authenticated correctly, and try again: checking push permission for "******": creating push check transport for myregistry.localhost:5001 failed: Get "<https://myregistry.localhost:5001/v2/>": dial tcp 192.168.128.6:5001: connect: connection refused; Get "<http://myregistry.localhost:5001/v2/>": dial tcp 192.168.128.6:5001: connect: connection refused
registries:
create:
name: "${REGISTRY_NAME}"
host: "0.0.0.0"
hostPort: "${REGISTRY_PORT}"
myregistry
and port is 5001
wide-garage-9465
08/10/2022, 2:15 PMpolite-engineer-55788
08/10/2022, 2:16 PMapiVersion: <http://k3d.io/v1alpha4|k3d.io/v1alpha4>
kind: Simple
metadata:
name: dag
servers: 1
agents: 2
image: rancher/k3s:v1.24.3-k3s1
ports:
# Drone CI
- port: 127.0.0.1:30980:30980
nodeFilters:
- agent:*
# Gitea
- port: 127.0.0.1:30950:30950
nodeFilters:
- agent:*
# Argo CD
- port: 127.0.0.1:30080:30080
nodeFilters:
- agent:*
registries:
create:
name: "myregistry.localhost"
host: "0.0.0.0"
hostPort: "5001"
volumes:
- "/Users/kameshs/MyLabs/gitops/dag/.k3s/registry:/var/lib/registry"
wide-garage-9465
08/10/2022, 2:19 PMk3d-myregistry.localhost:5001
, shouldn't it?
There are some notes about it in the docs. The k3d-
prefix is added automatically during creation.polite-engineer-55788
08/10/2022, 4:50 PMk3d
prefix as well from a pod within the clustercreating push check transport for k3d-myregistry.localhost:5001 failed: Get "<https://k3d-myregistry.localhost:5001/v2/>": dial tcp 192.168.144.2:5001: connect: connection refused; Get "<http://k3d-myregistry.localhost:5001/v2/>": dial tcp 192.168.144.2:5001: connect: connection refused
wide-garage-9465
08/10/2022, 5:23 PMkubectl get cm -n kube-system coredns -o yaml
?polite-engineer-55788
08/10/2022, 5:46 PM<https://k3d-myregistry.localhost:5001/v2/>
from the hostyaml
Corefile: |
.:53 {
errors
health
ready
kubernetes cluster.local in-addr.arpa ip6.arpa {
pods insecure
fallthrough in-addr.arpa ip6.arpa
}
hosts /etc/coredns/NodeHosts {
ttl 60
reload 15s
fallthrough
}
prometheus :9153
forward . /etc/resolv.conf
cache 30
loop
reload
loadbalance
}
import /etc/coredns/custom/*.server
NodeHosts: |
192.168.65.2 host.k3d.internal
192.168.144.2 k3d-myregistry.localhost
192.168.144.7 k3d-dag-serverlb
192.168.144.6 k3d-dag-agent-0
192.168.144.3 k3d-dag-tools
192.168.144.4 k3d-dag-server-0
192.168.144.5 k3d-dag-agent-1
ns-lookup
I get like
/apps # nslookup k3d-myregistry.localhost
Server: 10.43.0.10
Address: 10.43.0.10:53
Name: k3d-myregistry.localhost
Address: 192.168.144.6
/apps # curl 192.168.144.6:5001/v2
curl: (7) Failed to connect to 192.168.144.6 port 5001 after 0 ms: Connection refused
/apps # curl <http://192.168.144.6:5001/v2>
curl: (7) Failed to connect to 192.168.144.6 port 5001 after 0 ms: Connection refused
yaml
apiVersion: <http://k3d.io/v1alpha4|k3d.io/v1alpha4>
kind: Simple
metadata:
name: dag
servers: 1
agents: 2
image: rancher/k3s:v1.24.3-k3s1
ports:
# Drone CI
- port: 127.0.0.1:30980:30980
nodeFilters:
- agent:*
# Gitea
- port: 127.0.0.1:30950:30950
nodeFilters:
- agent:*
# Argo CD
- port: 127.0.0.1:30080:30080
nodeFilters:
- agent:*
registries:
create:
name: "k3d-myregistry.localhost"
host: "0.0.0.0"
hostPort: "5001"
volumes:
- "/Users/kameshs/MyLabs/gitops/dag/.k3s/registry:/var/lib/registry"
config: |
mirrors:
"<http://docker.io|docker.io>":
endpoint:
- <https://registry-1.docker.io>
Corefile
looks like
Corefile: |
.:53 {
errors
health
ready
kubernetes cluster.local in-addr.arpa ip6.arpa {
pods insecure
fallthrough in-addr.arpa ip6.arpa
}
hosts /etc/coredns/NodeHosts {
ttl 60
reload 15s
fallthrough
}
prometheus :9153
forward . /etc/resolv.conf
cache 30
loop
reload
loadbalance
}
import /etc/coredns/custom/*.server
NodeHosts: |
192.168.65.2 host.k3d.internal
192.168.144.4 k3d-dag-agent-1
192.168.144.2 k3d-dag-tools
192.168.144.7 k3d-dag-serverlb
192.168.144.6 k3d-myregistry.localhost
192.168.144.3 k3d-dag-server-0
192.168.144.5 k3d-dag-agent-0
wide-garage-9465
08/10/2022, 6:24 PMpolite-engineer-55788
08/10/2022, 11:34 PMwide-garage-9465
08/12/2022, 6:48 AM