-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmanifest.yaml
89 lines (86 loc) · 2.03 KB
/
manifest.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# This file contains a sample Deployment, PodDisruptionBudget and a Service.
# The Deployment expect an image called `hub-portal-ui:dev`.
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: hub-apiportal-ui
namespace: default
spec:
replicas: 2
selector:
matchLabels:
app: hub-apiportal-ui
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
labels:
app: hub-apiportal-ui
app.kubernetes.io/component: api-portal-ui
app.kubernetes.io/name: hub-apiportal-ui
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- hub-apiportal-ui
topologyKey: kubernetes.io/hostname
weight: 100
automountServiceAccountToken: false
containers:
- image: hub-portal-ui:dev
name: hub-apiportal-ui
imagePullPolicy: Never
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 50m
memory: 64Mi
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsUser: 65534
seccompProfile:
type: RuntimeDefault
capabilities:
drop:
- NET_RAW
---
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: hub-apiportal-ui
namespace: default
spec:
minAvailable: 1
selector:
matchLabels:
app.kubernetes.io/name: hub-apiportal-ui
---
apiVersion: v1
kind: Service
metadata:
name: hub-apiportal-ui
namespace: default
labels:
app.kubernetes.io/component: api-portal-ui
app.kubernetes.io/name: hub-apiportal-ui
spec:
ports:
- name: web
port: 80
targetPort: 3000
selector:
app: hub-apiportal-ui
type: ClusterIP