Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/ws-manager-mk2/config/manager/manager.yaml
2501 views
1
# Copyright (c) 2022 Gitpod GmbH. All rights reserved.
2
# Licensed under the GNU Affero General Public License (AGPL).
3
# See License-AGPL.txt in the project root for license information.
4
5
apiVersion: v1
6
kind: Namespace
7
metadata:
8
labels:
9
control-plane: controller-manager
10
name: system
11
---
12
apiVersion: apps/v1
13
kind: Deployment
14
metadata:
15
name: controller-manager
16
namespace: system
17
labels:
18
control-plane: controller-manager
19
spec:
20
selector:
21
matchLabels:
22
control-plane: controller-manager
23
replicas: 1
24
template:
25
metadata:
26
annotations:
27
kubectl.kubernetes.io/default-container: manager
28
labels:
29
control-plane: controller-manager
30
spec:
31
securityContext:
32
runAsNonRoot: true
33
containers:
34
- command:
35
- /manager
36
image: controller:latest
37
name: manager
38
securityContext:
39
allowPrivilegeEscalation: false
40
livenessProbe:
41
httpGet:
42
path: /healthz
43
port: 8081
44
initialDelaySeconds: 15
45
periodSeconds: 20
46
readinessProbe:
47
httpGet:
48
path: /readyz
49
port: 8081
50
initialDelaySeconds: 5
51
periodSeconds: 10
52
resources:
53
limits:
54
cpu: 500m
55
memory: 128Mi
56
requests:
57
cpu: 10m
58
memory: 64Mi
59
serviceAccountName: controller-manager
60
terminationGracePeriodSeconds: 10
61
62