Add graceful shutdown when interrupted

If implemented this permit restoring a clean state in case of signal
interruption.

Signed-off-by: Soule BA <soule@weave.works>
This commit is contained in:
Soule BA 2022-01-12 11:50:19 +01:00
parent f7d9ee90cd
commit 306f8f5715
No known key found for this signature in database
GPG key ID: 4D40965192802994
23 changed files with 134 additions and 800 deletions

View file

@ -71,4 +71,4 @@ spec:
memory: 512Mi
requests:
cpu: 100m
memory: 64Mi
memory: 64Mi

View file

@ -17,4 +17,4 @@ spec:
type: Utilization
# scale up if usage is above
# 99% of the requested CPU (100m)
averageUtilization: 99
averageUtilization: 99

View file

@ -12,4 +12,4 @@ spec:
sourceRef:
kind: GitRepository
name: podinfo
targetNamespace: default
targetNamespace: default

View file

@ -13,4 +13,4 @@ spec:
interval: 30s
ref:
branch: master
url: https://github.com/stefanprodan/podinfo
url: https://github.com/stefanprodan/podinfo

View file

@ -71,4 +71,4 @@ spec:
memory: 512Mi
requests:
cpu: 100m
memory: 64Mi
memory: 64Mi

View file

@ -17,4 +17,4 @@ spec:
type: Utilization
# scale up if usage is above
# 99% of the requested CPU (100m)
averageUtilization: 99
averageUtilization: 99

View file

@ -14,4 +14,4 @@ spec:
- port: 9999
targetPort: grpc
protocol: TCP
name: grpc
name: grpc