1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

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

This commit is contained in:
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

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 {