best-address-42882
02/15/2023, 10:28 PMbest-address-42882
02/15/2023, 10:29 PMechoing-thailand-39878
02/15/2023, 10:33 PM#!/bin/bash
function host_edit () {
if echo "${1}" | sudo -S grep -q "${2}" /etc/hosts; then
if [[ "$OSTYPE" == "darwin"* ]]; then
# Mac OSX
echo "${1}" | sudo -S sed -i '' "/${2}/ s/.*/${3} ${2}/g" /etc/hosts
else
echo "${1}" | sudo -S sed -i "/${2}/ s/.*/${3}\t${2}/g" /etc/hosts
fi
else
echo "${1}" | sudo -S bash -c "echo ${3} ${2} | tee -a /etc/hosts"
fi
}
echo "Enter sudo password: "
read -s sudopw
sudo mkdir -p /etc/docker/certs.d/priv-registry:5000
sudo mkdir -p /etc/docker/certs.d/priv-registry2:5000
sudo cp ca.crt /etc/docker/certs.d/priv-registry:5000/
sudo cp ca.crt /etc/docker/certs.d/priv-registry2:5000/
sudo cp ca.crt /usr/local/share/ca-certificates/priv-registry.crt
sudo cp ca.crt /usr/local/share/ca-certificates/priv-registry2.crt
sudo update-ca-certificates
echo "Setting up host file..."
host_edit $sudopw "priv-registry" "priv-registry2"
echo "Login to the registry:"
docker login priv-registry:5000
echoing-thailand-39878
02/15/2023, 10:33 PMechoing-thailand-39878
02/15/2023, 11:01 PM<https://github.com/rancher-sandbox/rancher-desktop/discussions/1477>
then vim ~/.docker/config.json
( not sure if this step is needed )
{
"auths": {
"priv-registry:5000": {}
},
"credsStore": "osxkeychain"
}
few-carpenter-10741
02/16/2023, 1:51 AMlittle-jordan-39170
02/16/2023, 8:33 AMable-magician-45575
02/16/2023, 9:55 AMorange-lawyer-37926
02/16/2023, 3:27 PMgentle-artist-52048
02/16/2023, 3:55 PMshy-megabyte-75492
02/16/2023, 5:18 PMbest-address-42882
02/16/2023, 5:33 PMbest-address-42882
02/16/2023, 5:33 PMbest-address-42882
02/16/2023, 5:33 PMstrong-yacht-60103
02/16/2023, 6:09 PMk3s.log
but I’m not enough of an expert to know what’s happening here.best-microphone-20624
02/16/2023, 7:45 PMfleet-default
namespace whose SecurityContext
violates Kyverno-enforced Restricted PSA here: https://github.com/rancher/rancher/blob/e215285980fff335697c940e7d6584564a16721d/p[…]kg/controllers/provisioningv2/rke2/machineprovision/template.go. Since I don't see namespace fleet-default
listed here: https://github.com/rancher/rancher/blob/e215285980fff335697c940e7d6584564a16721d/pkg/data/management/podadmissionconfigurationtemplate_data.go#L12, should I create a bug for this or should I expect fleet-default
to be added as another PSA exempt namespace before Rancher 2.7.2 is released?little-jordan-39170
02/16/2023, 7:59 PMfew-carpenter-10741
02/16/2023, 9:12 PMlittle-ambulance-5584
02/16/2023, 10:57 PMsome-monkey-58167
02/17/2023, 2:50 AMpolite-piano-74233
02/17/2023, 3:41 AMpolite-piano-74233
02/17/2023, 3:42 AMloud-greece-30395
02/17/2023, 8:10 AMloud-eve-73457
02/17/2023, 10:25 AMthankful-balloon-877
02/17/2023, 11:11 AMquick-army-7065
02/17/2023, 12:27 PM<ec2-ip-address>.<http://sslip.io|sslip.io>
, and I went ahead to create a CNAME pointing to that url <http://rancher.mydomain.com|rancher.mydomain.com>
.
Now, when I navigate to <http://rancher.mydomain.com|rancher.mydomain.com>
, I get a 404 not found page.
Is there something else I need to do to be able to access rancher on mydomain?bulky-coat-85959
02/17/2023, 12:52 PMbulky-coat-85959
02/17/2023, 12:53 PMboundless-waitress-88748
02/17/2023, 1:54 PMboundless-waitress-88748
02/17/2023, 1:55 PM