summaryrefslogtreecommitdiff
path: root/internal/config/config.go
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2021-07-19 13:29:17 +0000
committerNick Thomas <nick@gitlab.com>2021-07-19 13:29:17 +0000
commit8c932b0d5a698ea6b9a770be8f8c6ecc58b38727 (patch)
tree4641a745c5ce112f103b113701a8aedde9a3c6b6 /internal/config/config.go
parent60a91e977cb76e2cc49faeeac134640dbf2e2e6c (diff)
parentc505ced99cefece0255e62c02904d8cf415f9075 (diff)
downloadgitlab-shell-8c932b0d5a698ea6b9a770be8f8c6ecc58b38727.tar.gz
Merge branch 'id-kubernetes-probes' into 'main'
Provide liveness and readiness probes See merge request gitlab-org/gitlab-shell!494
Diffstat (limited to 'internal/config/config.go')
-rw-r--r--internal/config/config.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/config/config.go b/internal/config/config.go
index c58ea7d..71e7840 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -26,7 +26,9 @@ type ServerConfig struct {
ProxyProtocol bool `yaml:"proxy_protocol,omitempty"`
WebListen string `yaml:"web_listen,omitempty"`
ConcurrentSessionsLimit int64 `yaml:"concurrent_sessions_limit,omitempty"`
- GracePeriodSeconds uint64 `yaml:"grace_period"`
+ GracePeriodSeconds uint64 `yaml:"grace_period"`
+ ReadinessProbe string `yaml:"readiness_probe"`
+ LivenessProbe string `yaml:"liveness_probe"`
HostKeyFiles []string `yaml:"host_key_files,omitempty"`
}
@@ -72,6 +74,8 @@ var (
WebListen: "localhost:9122",
ConcurrentSessionsLimit: 10,
GracePeriodSeconds: 10,
+ ReadinessProbe: "/start",
+ LivenessProbe: "/health",
HostKeyFiles: []string{
"/run/secrets/ssh-hostkeys/ssh_host_rsa_key",
"/run/secrets/ssh-hostkeys/ssh_host_ecdsa_key",