Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add K8s Namespace property documentation #14620

Merged
merged 1 commit into from
Jan 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docs/src/main/asciidoc/deploying-to-kubernetes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,22 @@ quarkus.container-image.tag=1.0 #optional, defaults to the application ver

The image that will be used in the generated manifests will be `quarkus/demo-app:1.0`

=== Namespace

By default Quarkus omits the namespace in the generated manifests, rather than enforce the `default` namespace. That means that you can apply the manifest to your chosen namespace when using `kubctl`, which in the example below is `test`:

[source,bash]
----
kubectl apply -f target/kubernetes/kubernetes.json -n=test
----

To specify the namespace in your manifest customize with the following property in your `application.properties`:

[source,properties]
----
quarkus.kubernetes.namespace=mynamespace
----

=== Defining a Docker registry

The Docker registry can be specified with the following property:
Expand Down Expand Up @@ -587,6 +603,7 @@ The table below describe all the available configuration options.
| quarkus.kubernetes.version | String | | ${quarkus.container-image.tag}
| quarkus.kubernetes.part-of | String | |
| quarkus.kubernetes.init-containers | Map<String, Container> | |
| quarkus.kubernetes.namespace | String | |
| quarkus.kubernetes.labels | Map | |
| quarkus.kubernetes.annotations | Map | |
| quarkus.kubernetes.env-vars | Map<String, Env> | |
Expand Down