-
Notifications
You must be signed in to change notification settings - Fork 0
/
app-deploy.yaml
54 lines (54 loc) · 1.08 KB
/
app-deploy.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
apiVersion: openliberty.io/v1beta1
kind: OpenLibertyApplication
metadata:
name: java-openliberty
spec:
# Add fields here
monitoring:
endpoints:
- basicAuth:
password:
key: password
name: mysecret
username:
key: username
name: mysecret
interval: 5s
tlsConfig:
insecureSkipVerify: true
labels:
monitoring: ''
env:
- name: STACK_USERNAME
valueFrom:
secretKeyRef:
key: username
name: mysecret
- name: STACK_PASSWORD
valueFrom:
secretKeyRef:
key: password
name: mysecret
version: 1.0.0
applicationImage: <CONTAINER_IMAGE>
service:
type: ClusterIP
port: 9080
annotations:
prometheus.io/scrape: 'true'
readinessProbe:
failureThreshold: 12
httpGet:
path: /health/ready
port: 9080
initialDelaySeconds: 5
periodSeconds: 2
timeoutSeconds: 1
livenessProbe:
failureThreshold: 12
httpGet:
path: /health/live
port: 9080
initialDelaySeconds: 5
periodSeconds: 2
expose: true