forked from pixie-io/docs.px.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservice.skfld.tmpl
56 lines (56 loc) · 1.16 KB
/
service.skfld.tmpl
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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: customer-docs
namespace: pl
labels:
app: pl-monitoring
spec:
replicas: 1
selector:
matchLabels:
app: customer-docs
template:
metadata:
name: customer-docs
labels:
app: customer-docs
name: customer-docs
spec:
containers:
- name: customer-docs-server
image: gcr.io/pl-dev-infra/customer_docs_prod_image:latest
ports:
- containerPort: 56000
readinessProbe:
httpGet:
scheme: HTTPS
path: /healthz
port: 56000
volumeMounts:
- name: certs
mountPath: /certs
volumes:
- name: certs
secret:
secretName: custom-tls-cert
---
apiVersion: v1
kind: Service
metadata:
name: customer-docs-service
namespace: pl
annotations:
cloud.google.com/load-balancer-type: internal
spec:
type: LoadBalancer
{{ if (eq .Deployment "nightly") }}
loadBalancerIP: 10.32.15.241
{{ end }}
ports:
- port: 443
protocol: TCP
targetPort: 56000
name: tcp-https
selector:
name: customer-docs