-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
132 additions
and
11 deletions.
There are no files selected for viewing
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
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
23 changes: 20 additions & 3 deletions
23
charts/scalar-manager/templates/scalar-manager/service.yaml
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 |
---|---|---|
@@ -1,16 +1,33 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "scalar-manager.fullname" . }} | ||
name: {{ include "scalar-manager.fullname" . }}-web | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "scalar-manager.labels" . | nindent 4 }} | ||
spec: | ||
type: {{ .Values.service.type }} | ||
type: {{ .Values.service.web.type }} | ||
ports: | ||
- protocol: TCP | ||
name: web | ||
port: {{ .Values.service.port }} | ||
port: {{ .Values.service.web.port }} | ||
targetPort: 3000 | ||
selector: | ||
{{- include "scalar-manager.selectorLabels" . | nindent 4 }} | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "scalar-manager.fullname" . }}-api | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "scalar-manager.labels" . | nindent 4 }} | ||
spec: | ||
type: {{ .Values.service.api.type }} | ||
ports: | ||
- protocol: TCP | ||
name: api | ||
port: {{ .Values.service.api.port }} | ||
targetPort: 8080 | ||
selector: | ||
{{- include "scalar-manager.selectorLabels" . | nindent 4 }} |
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
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 |
---|---|---|
|
@@ -27,8 +27,12 @@ nodeSelector: {} | |
tolerations: [] | ||
|
||
service: | ||
type: ClusterIP | ||
port: 80 | ||
web: | ||
type: ClusterIP | ||
port: 80 | ||
api: | ||
type: ClusterIP | ||
port: 8080 | ||
|
||
serviceAccount: | ||
serviceAccountName: "" | ||
|
@@ -80,12 +84,65 @@ api: | |
paused-state-retention.storage=${PAUSED_STATE_RETENTION_STORAGE:configmap} | ||
paused-state-retention.max-number=${PAUSED_STATE_RETENTION_MAX_NUMBER:100} | ||
# JWT configuration | ||
# P-256 (secp256k1) private key in PKCS8 format, using for signing JWT tokens, required when persistence endpoints are enabled | ||
authentication.providers.static-jwt.private-key=${AUTHENTICATION_PROVIDERS_STATIC_JWT_PRIVATE_KEY:} | ||
# Public key in X.509/SPKI format using for verifying JWT tokens, when authentication is enabled, this key is used for verifying JWT tokens | ||
authentication.providers.static-jwt.public-key=${AUTHENTICATION_PROVIDERS_STATIC_JWT_PUBLIC_KEY:} | ||
authentication.providers.static-jwt.issuer-uri=${AUTHENTICATION_PROVIDERS_STATIC_JWT_ISSUER_URI:https://scalar-manager.scalar-labs.com} | ||
authentication.providers.static-jwt.access-token-expiration-time=${AUTHENTICATION_PROVIDERS_STATIC_JWT_ACCESS_TOKEN_EXPIRATION_TIME:15m} | ||
authentication.providers.static-jwt.refresh-token-expiration-time=${AUTHENTICATION_PROVIDERS_STATIC_JWT_REFRESH_TOKEN_EXPIRATION_TIME:3d} | ||
# OpenAPI configuration | ||
springdoc.swagger-ui.enabled=${SPRINGDOC_SWAGGER_UI_ENABLED:false} | ||
springdoc.swagger-ui.path=${SPRINGDOC_SWAGGER_UI_PATH:/swagger-ui.html} | ||
# Whether to enable persistence endpoints or not (auth, user management) | ||
app.persistence-endpoints.enabled=${APP_PERSISTENCE_ENDPOINTS_ENABLED:false} | ||
# Whether to enable authorization or not for the operational endpoints | ||
app.authorization.enabled=${APP_AUTHORIZATION_ENABLED:false} | ||
# CORS configuration | ||
app.cors.allowed-origins=${APP_CORS_ALLOWED_ORIGINS:*} | ||
app.cors.allowed-methods=${APP_CORS_ALLOWED_METHODS:*} | ||
app.cors.allowed-headers=${APP_CORS_ALLOWED_HEADERS:*} | ||
# # Initial admin configuration, only need these configurations if persistence endpoints is enabled | ||
# app.initial-admin-user.enabled=${APP_INITIAL_ADMIN_USER_ENABLED:false} | ||
# app.initial-admin-user.email=${APP_INITIAL_ADMIN_USER_EMAIL:[email protected]} | ||
# app.initial-admin-user.name=${APP_INITIAL_ADMIN_USER_NAME:Administrator} | ||
# app.initial-admin-user.password=${APP_INITIAL_ADMIN_USER_PASSWORD:Password@123!} | ||
# # JPA configuration, only need these configurations if persistence endpoints is enabled | ||
# spring.jpa.hibernate.ddl-auto=${SPRING_JPA_HIBERNATE_DDL_AUTO:update} | ||
# spring.jpa.show-sql=${SPRING_JPA_SHOW_SQL:false} | ||
# spring.jpa.properties.hibernate.format_sql=${SPRING_JPA_PROPERTIES_HIBERNATE_FORMAT_SQL:false} | ||
# # Database configuration, only need these configurations if persistence endpoints is enabled | ||
# spring.datasource.url=jdbc:postgresql://${DATABASE_HOST:scalar-manager-postgres-postgresql}:${DATABASE_PORT:5432}/${DATABASE_NAME:scalar-manager} | ||
# spring.datasource.username=${DATABASE_USERNAME:scalar-manager} | ||
# spring.datasource.password=${DATABASE_PASSWORD:scalar-manager} | ||
# spring.datasource.driver-class-name=org.postgresql.Driver | ||
web: | ||
image: | ||
repository: ghcr.io/scalar-labs/scalar-manager-web | ||
pullPolicy: IfNotPresent | ||
# Overrides the image tag whose default is the chart appVersion. | ||
tag: "" | ||
|
||
authorization: | ||
# Whether to enable authorization or not for the web application, if enabled the login, user management page will be available | ||
enabled: false | ||
# The base URL of the authorization service, default is same as the scalar-manager-api service | ||
baseUrl: http://localhost:8080 | ||
|
||
operation: | ||
# The base URL of the operation service, default is same as the scalar-manager-api service | ||
baseUrl: http://localhost:8080 | ||
|
||
resources: | ||
{} | ||
# We usually recommend not to specify default resources and to leave this as a conscious | ||
|