Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 6bc2167

Browse files
howto: update k8s example
1 parent 709b96b commit 6bc2167

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,15 @@ The easiest way to use avd-all-in-one container with remote SSH is creating a si
117117
[k8s-avd-cvp.yml](k8s-avd-cvp.yml) is an example pod definition for running avd-all-in-one on CloudVision (CentOS), however
118118
it should work on other linux distributions (the CVP env vars won't be needed in that case).
119119

120-
1. Download the docker image: `docker pull avdteam/avd-all-in-one` (run it on all CVP nodes in case of multinode)
120+
The below example is for running the pod on one specific node (set by the `nodeName: $PRIMARY_HOSTNAME` node selection in the spec)
121+
122+
1. Download the docker image: `docker pull avdteam/avd-all-in-one`
121123
2. Create avd group and user: `groupadd -g 1000 avd && useradd avd -u 1000 -g 1000`
122124
3. Create projects in `/home/avd`
123-
4. Deploy the k8s pod: `kubectl apply -f /cvpi/conf/kubernetes/k8s-avd-cvp.yml`
125+
4. Deploy the k8s pod: `envsubst < /cvpi/conf/kubernetes/avd.yml | kubectl apply -f -`
126+
127+
> Note that the pod can be also deployed on any node by removing the `nodeName` field from the spec, however that would also require
128+
> pulling the image onto all nodes and synchronozing the project files between all nodes.
124129
125130
## Known Caveats
126131

k8s-avd-cvp.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ spec:
1414
labels:
1515
app: avd
1616
spec:
17+
node: $PRIMARY_HOSTNAME
1718
hostNetwork: false
1819
securityContext:
1920
runAsUser: 1000

0 commit comments

Comments
 (0)