This repository has been archived by the owner on Mar 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: change docs and error message for pre-created namespace deployme…
…nt (#785) fix: change docs and error message for precreated namespace deployment Signed-off-by: Joshua Silverio <joshua@acorn.io> Co-authored-by: Craig Jellick <craig.jellick@gmail.com>
- Loading branch information
1 parent
3ab6fb4
commit 85872b8
Showing
2 changed files
with
33 additions
and
5 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
docs/docs/50-running/50-namespaces-and-service-accounts.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
title: Namespaces and Service Accounts | ||
--- | ||
## Namespaces | ||
|
||
By design Acorn will run apps under the `acorn` namespace. If you are planning to deploy an app to a pre-created namespace you will need to label it explicitly. | ||
|
||
#### To label : | ||
|
||
```shell | ||
kubectl label namespaces <pre-created-namespace> acorn.io/app-name=<test-app> | ||
kubectl label namespaces <pre-created-namespace> acorn.io/app-namespace=acorn | ||
``` | ||
#### To verify : | ||
```shell | ||
acorn run --target-namespace <pre-created-namespace> -n <test-app> -P ghcr.io/acorn-io/library/hello-world | ||
acorn % kubectl get pods -n ns-test-app | ||
NAME READY STATUS RESTARTS AGE | ||
webapp-556947c87d-gt97r 1/1 Running 0 3m54s | ||
|
||
``` | ||
:::caution | ||
When the app is removed the namespace will also be deleted. | ||
|
||
## Service Accounts | ||
|
||
All Kubernetes deployments launched as part of an Acorn will have a service account attached named "acorn" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters