From 26e355898f500edff8f10f8b2612d2e19e9c262c Mon Sep 17 00:00:00 2001 From: Riaan Nolan Date: Tue, 18 Mar 2025 20:00:44 +0000 Subject: [PATCH 1/3] adding forwardPorts and portsAttributes --- .devcontainer/devcontainer.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index a1bce4c..bf36857 100755 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,6 +3,8 @@ "service": "k3s-devcontainer", "workspaceFolder": "/app", "remoteUser": "ubuntu", + "forwardPorts": ["kubernetes-dashboard:8001"], + "portsAttributes": {"8001": {"label": "kubernetes-dashboard", "protocol": "https"}}, "postStartCommand": { "set-git-config-safe-directory": "git config --global --add safe.directory ${containerWorkspaceFolder}", "set-git-config-line-endings": "git config --global core.autocrlf input", From 793c961e1d4d255a721592fe1efadbf7ad80ea96 Mon Sep 17 00:00:00 2001 From: Riaan Nolan Date: Tue, 18 Mar 2025 20:26:43 +0000 Subject: [PATCH 2/3] adding forwardPorts and portsAttributes --- .devcontainer/devcontainer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index bf36857..32f1b50 100755 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,8 +3,8 @@ "service": "k3s-devcontainer", "workspaceFolder": "/app", "remoteUser": "ubuntu", - "forwardPorts": ["kubernetes-dashboard:8001"], - "portsAttributes": {"8001": {"label": "kubernetes-dashboard", "protocol": "https"}}, + "forwardPorts": ["localhost:8001"], + "portsAttributes": {"8001": {"label": "8001", "protocol": "https", "onAutoForward": "silent"}}, "postStartCommand": { "set-git-config-safe-directory": "git config --global --add safe.directory ${containerWorkspaceFolder}", "set-git-config-line-endings": "git config --global core.autocrlf input", From 6f1b0c19a8e403f79c801ce21be4bc9afb53d718 Mon Sep 17 00:00:00 2001 From: Riaan Nolan Date: Tue, 18 Mar 2025 20:33:07 +0000 Subject: [PATCH 3/3] adding forwardPorts and portsAttributes --- .devcontainer/devcontainer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 32f1b50..4988bb1 100755 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,8 +3,6 @@ "service": "k3s-devcontainer", "workspaceFolder": "/app", "remoteUser": "ubuntu", - "forwardPorts": ["localhost:8001"], - "portsAttributes": {"8001": {"label": "8001", "protocol": "https", "onAutoForward": "silent"}}, "postStartCommand": { "set-git-config-safe-directory": "git config --global --add safe.directory ${containerWorkspaceFolder}", "set-git-config-line-endings": "git config --global core.autocrlf input", @@ -13,6 +11,8 @@ "postAttachCommand": { "print-message-of-the-day": "bash /etc/update-motd.d/00-header" }, + "forwardPorts": ["localhost:8001"], + "portsAttributes": {"8001": {"protocol": "https"}}, "customizations": { "vscode": { "settings": {