fix(kube): update kubectl agent install instructions (#7421)

pull/7446/head
Dakota Walsh 2022-08-08 14:06:10 +12:00 committed by GitHub
parent 539948b5a6
commit 8ff2fa66b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -73,13 +73,13 @@ export function DeploymentScripts() {
function kubeNodePortCommand(agentVersion: string) {
const agentShortVersion = getAgentShortVersion(agentVersion);
return `curl -L https://downloads.portainer.io/ee${agentShortVersion}/portainer-agent-k8s-nodeport.yaml -o portainer-agent-k8s.yaml; kubectl apply -f portainer-agent-k8s.yaml`;
return `kubectl apply -f https://downloads.portainer.io/ce${agentShortVersion}/portainer-agent-k8s-nodeport.yaml`;
}
function kubeLoadBalancerCommand(agentVersion: string) {
const agentShortVersion = getAgentShortVersion(agentVersion);
return `curl -L https://downloads.portainer.io/ee${agentShortVersion}/portainer-agent-k8s-lb.yaml -o portainer-agent-k8s.yaml; kubectl apply -f portainer-agent-k8s.yaml`;
return `kubectl apply -f https://downloads.portainer.io/ce${agentShortVersion}/portainer-agent-k8s-lb.yaml`;
}
interface LoadBalancerProps {