Gero Posmyk-Leinemann 89e09307b9
[server] Introduces ReadinessProbe (#20669)
* [server] Introduce ReadinessController and probe at /ready

Tool: gitpod/catfood.gitpod.cloud

* [server] Move /live and /ready endpoints to a separate express app and port

Tool: gitpod/catfood.gitpod.cloud

* [memory-bank] task-related learnings

Tool: gitpod/catfood.gitpod.cloud

* [server] Introduce `server_readiness_probe` feature flag so we can disable the ReadinessProbe if required

Tool: gitpod/catfood.gitpod.cloud

* docs: formalize Product Requirements Document workflow

- Add PRD workflow to systemPatterns.md as a standardized development process
- Update .clinerules with instructions to follow the PRD workflow
- Update activeContext.md and progress.md to reference the new workflow

This formalizes the process we used for implementing the server readiness probe feature.

Tool: gitpod/catfood.gitpod.cloud

* [server] ReadinessProbe: add redis as dependency

Tool: gitpod/catfood.gitpod.cloud

* review comments

Tool: gitpod/catfood.gitpod.cloud

* [dev] Remove outdated gopls config

Tool: gitpod/catfood.gitpod.cloud

* [server] Fix import

Tool: gitpod/catfood.gitpod.cloud
2025-03-17 11:44:46 -04:00

41 lines
1.6 KiB
Go

// Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License.AGPL.txt in the project root for license information.
package server
import (
"github.com/gitpod-io/gitpod/installer/pkg/common"
)
const (
Component = common.ServerComponent
ContainerPort = 3000
ContainerPortName = "http"
authProviderFilePath = "/gitpod/auth-providers"
licenseFilePath = "/gitpod/license"
stripeSecretMountPath = "/stripe-secret"
linkedInSecretMountPath = "/linkedin-secret"
githubAppCertSecret = "github-app-cert-secret"
IAMSessionPort = common.ServerIAMSessionPort
IAMSessionPortName = "session"
InstallationAdminPort = common.ServerInstallationAdminPort
InstallationAdminName = "install-admin"
DebugPortName = "debug"
DebugNodePortName = "debugnode"
ServicePort = 3000
personalAccessTokenSigningKeyMountPath = "/secrets/personal-access-token-signing-key"
ProbesPort = 9400
ProbesPortName = "probes"
AdminCredentialsSecretName = "admin-credentials"
AdminCredentialsSecretMountPath = "/credentials/admin"
AdminCredentialsSecretKey = "admin.json"
GRPCAPIName = "grpc"
GRPCAPIPort = common.ServerGRPCAPIPort
PublicAPIName = "public-api"
PublicAPIPort = common.ServerPublicAPIPort
)