-
Notifications
You must be signed in to change notification settings - Fork 15
/
logging-view-plugin-resources.yml
132 lines (129 loc) · 3.27 KB
/
logging-view-plugin-resources.yml
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
apiVersion: v1
kind: Service
metadata:
annotations:
service.alpha.openshift.io/serving-cert-secret-name: plugin-serving-cert
name: logging-view-plugin
namespace: openshift-logging
labels:
app: logging-view-plugin
app.kubernetes.io/component: logging-view-plugin
app.kubernetes.io/instance: logging-view-plugin
app.kubernetes.io/part-of: logging-view-plugin
spec:
ports:
- name: 9443-tcp
protocol: TCP
port: 9443
targetPort: 9443
selector:
app: logging-view-plugin
type: ClusterIP
sessionAffinity: None
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: logging-view-plugin
namespace: openshift-logging
labels:
app: logging-view-plugin
app.kubernetes.io/component: logging-view-plugin
app.kubernetes.io/instance: logging-view-plugin
app.kubernetes.io/part-of: logging-view-plugin
app.openshift.io/runtime-namespace: openshift-logging
spec:
replicas: 1
selector:
matchLabels:
app: logging-view-plugin
template:
metadata:
labels:
app: logging-view-plugin
spec:
containers:
- name: logging-view-plugin
image: "quay.io/openshift-logging/logging-view-plugin:latest"
args:
- "-port=9443"
- "-cert=/var/serving-cert/tls.crt"
- "-key=/var/serving-cert/tls.key"
- "-plugin-config-path=/etc/plugin/config.yaml"
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
ports:
- containerPort: 9443
protocol: TCP
imagePullPolicy: Always
resources:
requests:
cpu: 100m
memory: 128Mi
volumeMounts:
- name: plugin-serving-cert
readOnly: true
mountPath: /var/serving-cert
- name: plugin-config
readOnly: true
mountPath: /etc/plugin/config.yaml
subPath: config.yaml
volumes:
- name: plugin-serving-cert
secret:
secretName: plugin-serving-cert
defaultMode: 420
- name: plugin-config
configMap:
name: logging-view-plugin-config
defaultMode: 420
restartPolicy: Always
dnsPolicy: ClusterFirst
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
---
apiVersion: console.openshift.io/v1
kind: ConsolePlugin
metadata:
name: logging-view-plugin
spec:
displayName: "Logging view plugin"
backend:
type: Service
service:
name: logging-view-plugin
namespace: openshift-logging
basePath: "/"
port: 9443
proxy:
- alias: backend
authorization: UserToken
endpoint:
service:
name: logging-loki-gateway-http
namespace: openshift-logging
port: 8080
type: Service
---
apiVersion: v1
kind: ConfigMap
metadata:
name: logging-view-plugin-config
namespace: openshift-logging
labels:
app: logging-view-plugin
app.kubernetes.io/part-of: logging-view-plugin
data:
config.yaml: |-
logsLimit: 100
timeout: "30s"