-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsolr.yaml
74 lines (74 loc) · 1.36 KB
/
solr.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: solr-deployment
labels:
app: solr
spec:
replicas: 1
selector:
matchLabels:
app: solr
template:
metadata:
labels:
app: solr
spec:
nodeSelector:
"beta.kubernetes.io/os": windows # Run on a Windows Node
containers:
- name: solr
image: avivasolutionsnl.azurecr.io/sitecore-xc-solr:9.1.0-20190904
ports:
- containerPort: 8983
volumeMounts:
- mountPath: "/Data"
name: volume
volumes:
- name: volume
persistentVolumeClaim:
claimName: solr-managed-disk
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: solr-managed-disk
spec:
accessModes:
- ReadWriteOnce
storageClassName: managed-premium
resources:
requests:
storage: 5Gi
---
apiVersion: v1
kind: Service
metadata:
name: solr
spec:
ports:
- protocol: TCP
port: 8983
selector:
app: solr
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: solr
annotations:
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: 'true'
spec:
tls:
- hosts:
- solr.xc9-k8s.rocks
secretName: tls-secret-solr
rules:
- host: solr.xc9-k8s.rocks
http:
paths:
- backend:
serviceName: solr
servicePort: 8983
path: /