新增learn-kubernetes(https://github.com/yyong-brs/learn-kubernetes)相关文件
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
|
||||
$controller='ingress-nginx-controller'
|
||||
$ns='kiamol-ingress-nginx'
|
||||
$ip=$(kubectl get svc $controller -o jsonpath='{.status.loadBalancer.ingress[0].*}' -n $ns)
|
||||
if ($ip -eq 'localhost') {
|
||||
$ip='127.0.0.1'
|
||||
}
|
||||
|
||||
Add-Content -Value "$ip todo.kiamol.local$([Environment]::NewLine)$ip api.todo.kiamol.local" -Path C:/windows/system32/drivers/etc/hosts
|
||||
Reference in New Issue
Block a user