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

fix: change default readiness probe port #1122

Merged
merged 1 commit into from
Mar 5, 2025
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,10 @@ COPY --from=cfg /etc/passwd /etc/passwd
COPY --from=cfg /etc/group /etc/group
COPY ./Cargo.lock /Cargo.lock
USER 65533:65533
# Default port, should be used when tls is not enabled
EXPOSE 3000
# Readiness probe port, always http
EXPOSE 8081
# To be used when tls is enabled
EXPOSE 8443
ENTRYPOINT ["/policy-server"]
2 changes: 1 addition & 1 deletion cli-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ This document contains the help content for the `policy-server` command-line pro
Default value: `3000`
* `--readiness-probe-port <READINESS_PROBE_PORT>` — Expose readiness endpoint on READINESS_PROBE_PORT

Default value: `3000`
Default value: `8081`
* `--sigstore-cache-dir <SIGSTORE_CACHE_DIR>` — Directory used to cache sigstore data

Default value: `sigstore-data`
Expand Down
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ pub(crate) fn build_cli() -> Command {
Arg::new("readiness-probe-port")
.long("readiness-probe-port")
.value_name("READINESS_PROBE_PORT")
.default_value("3000")
.default_value("8081")
.env("KUBEWARDEN_READINESS_PROBE_PORT")
.help("Expose readiness endpoint on READINESS_PROBE_PORT"),

Expand Down
Loading