-
Notifications
You must be signed in to change notification settings - Fork 0
/
operator.yaml
91 lines (91 loc) · 2.03 KB
/
operator.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
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvc-cephfs-cms
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi
storageClassName: csi-cephfs-cms
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: htc-operator
spec:
replicas: 1
selector:
matchLabels:
name: htc-operator
template:
metadata:
labels:
name: htc-operator
spec:
serviceAccountName: htc-operator
imagePullSecrets:
- name: gitlab-registry
containers:
- name: htc-operator
# Replace this with the built image name
image: gitlab-registry.cern.ch/cms-cloud/htc-operator:latest
command: ["sh", "-c"]
args: [main]
imagePullPolicy: Always
volumeMounts:
- mountPath: /secret/keytabvol
name: keytab-secret-vol
- mountPath: /data
name: vol-cephfs-cms
env:
- name: WATCH_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: OPERATOR_NAME
value: "htc-operator"
volumes:
- name: vol-cephfs-cms
persistentVolumeClaim:
claimName: pvc-cephfs-cms
readOnly: false
- name: keytab-secret-vol
secret:
secretName: kerberos-keytab-secret
---
apiVersion: v1
kind: Service
metadata:
name: cloudevents-service
spec:
type: ClusterIP
ports:
- name: http
protocol: TCP
port: 80
targetPort: 8080
selector:
name: htc-operator
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: cloudevents-ingress
annotations:
kubernetes.io/ingress.class: traefik
traefik.frontend.entryPoints: "http"
spec:
rules:
- host: cms-batch.cern.ch
http:
paths:
- path: /cloudevents
backend:
serviceName: cloudevents-service
servicePort: 80