-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathoptimizer-deployment.yaml
More file actions
36 lines (36 loc) · 949 Bytes
/
optimizer-deployment.yaml
File metadata and controls
36 lines (36 loc) · 949 Bytes
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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: optimizer
name: optimizer
spec:
replicas: 1
selector:
matchLabels:
app: optimizer
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: optimizer
spec:
containers:
- image: quay.io/orchestrator/optimizer
name: optimizer
env:
- name: OPTIMIZER_CM_NAME
value: app-config
- name: OPTIMIZER_CM_NAMESPACE
value: optimizer
# LOGGING CONFIGURATION
# Use this command to load log4j2.xml in to ConfigMap: oc -n optimizer create cm log-config --from-file log4j2.xml
# Uncomment the following lines in order to have the container mount your logging configuration
# volumeMounts:
# - name: log-config
# mountPath: /optimizer
# volumes:
# - name: log-config
# configMap:
# name: log-config