Skip to content

Commit 7c0276f

Browse files
committed
Improve config
1 parent e4f6d9a commit 7c0276f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/docs/configuration/config.yaml.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ devSpace:
2929
# Map of key value matchLabel selectors
3030
labelSelector:
3131
release: my-app
32+
# namespace where to select the pods from
33+
namespace: my-namespace
3234
# Array of port mappings
3335
portMappings:
3436
# The local machine port
@@ -140,6 +142,7 @@ Defines how the DevSpace is deployed to your cluster. See [Type: Release](#type-
140142
### devspace.portForwarding
141143
To access applications running inside a DevSpace, the DevSpace CLI allows to configure port forwardings. A port forwarding consists of the following:
142144
- `resourceType` *string* kubernetes resource type that is selected (currently only `pod` is supported)
145+
- `namespace` *string* the namespace where to select the pods from
143146
- `labelSelector` *map[string]string* usually the release/app name
144147
- `portMappings` *PortMapping array*
145148

@@ -154,6 +157,7 @@ In the example above, you could open `localhost:8080` inside your browser to see
154157
To comfortably sync code to a DevSpace, the DevSpace CLI allows to configure real-time code synchronizations. A sync config consists of the following:
155158
- `resourceType` *string* kubernetes resource type that is selected (currently only `pod` is supported)
156159
- `labelSelector` *map[string]string* label selector to select the correct pod (usually the release/app name)
160+
- `namespace` *string* the namespace where to select the pods from
157161
- `containerName` *string* the name of the container within the pod to sync to (default: the first specified container in the pod)
158162
- `localSubPath` *string* relative path to the folder that should be synced (default: path to your local project root)
159163
- `containerPath` *string* absolute path within the container

0 commit comments

Comments
 (0)