-
Notifications
You must be signed in to change notification settings - Fork 0
/
02-pebble.yaml
107 lines (106 loc) · 2.36 KB
/
02-pebble.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: pebble
labels:
name: pebble
namespace: pebble
spec:
replicas: 1
selector:
matchLabels:
name: pebble
template:
metadata:
labels:
name: pebble
spec:
containers:
- name: pebble
image: quay.io/powercloud/pebble-tool:pebble
imagePullPolicy: Always
command: [ "/usr/bin/pebble" ]
args: [ "-config", "/config/pebble-config.json" ]
env:
- name: PEBBLE_VA_NOSLEEP
value: "1"
- name: PEBBLE_AUTHZREUSE
value: "100"
- name: PEBBLE_VA_ALWAYS_VALID
value: "0"
resources:
limits:
cpu: 300m
memory: 500Mi
requests:
cpu: 100m
memory: 200Mi
ports:
- containerPort: 30100
- containerPort: 30200
- containerPort: 80
- containerPort: 30502
securityContext:
runAsNonRoot: true
capabilities:
drop:
- all
readOnlyRootFilesystem: true
volumeMounts:
- name: pebble-vol
mountPath: /tmp
- name: pebble-config
mountPath: "/config"
readOnly: true
- name: pebble-tls
mountPath: "/tls"
readOnly: true
volumes:
- name: pebble-vol
emptyDir:
medium: Memory
- name: pebble-config
configMap:
name: pebble-config
items:
- key: "pebble-config.json"
path: "pebble-config.json"
- name: pebble-tls
secret:
secretName: pebble-tls
nodeSelector:
node.openshift.io/os_id: rhcos
kubernetes.io/arch: ppc64le
---
apiVersion: v1
kind: Service
metadata:
name: pebble-svc
labels:
name: pebble
namespace: pebble
spec:
type: NodePort
ports:
- port: 30100
name: pebble4
protocol: TCP
targetPort: 30100
nodePort: 30100
- port: 30200
name: pebble5
protocol: TCP
targetPort: 30200
nodePort: 30200
- port: 80
name: pebblehttp
protocol: TCP
targetPort: 80
- port: 30502
name: pebblehttps
protocol: TCP
targetPort: 30502
nodePort: 30502
selector:
name: pebble