forked from sourcegraph/deploy-sourcegraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lang-typescript.Ingress.yaml
41 lines (38 loc) · 1.6 KB
/
lang-typescript.Ingress.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
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: lang-typescript
labels:
app: lang-typescript
deploy: lang-typescript
annotations:
kubernetes.io/ingress.class: "nginx"
# HTTP basic auth prevents unauthorized access to the language server.
# See https://kubernetes.github.io/ingress-nginx/examples/auth/basic/ for more information.
nginx.ingress.kubernetes.io/auth-type: basic
nginx.ingress.kubernetes.io/auth-realm: 'Basic authentication is required to access the language server'
# Name of the Kubernetes secret that contains the user/password definitions.
# 🚨 You must create the 'langserver-auth' secret with 'kubectl create secret generic langserver-auth ...'
nginx.ingress.kubernetes.io/auth-secret: langserver-auth
# See
# https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/
# for more nginx annotations.
spec:
tls:
- hosts:
# 🚨 TLS is required for secure communication with the language server.
# See the customization guide (../../../docs/configure.md) for information
# about configuring TLS
#
# Make sure to replace 'typescript.sourcegraph.example.com' with the real domain that you are
# using for the Javascript/Typescript language server.
- typescript.sourcegraph.example.com
secretName: typescript-tls
rules:
- host: typescript.sourcegraph.example.com
http:
paths:
- path: /
backend:
serviceName: lang-typescript
servicePort: 8080