forked from sourcegraph/deploy-sourcegraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlang-go.Ingress.yaml
41 lines (38 loc) · 1.53 KB
/
lang-go.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: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: lang-go
labels:
app: lang-go
deploy: lang-go
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 'go.sourcegraph.example.com' with the real domain that you are
# using for the Go language server.
- go.sourcegraph.example.com
secretName: go-tls
rules:
- host: go.sourcegraph.example.com
http:
paths:
- path: /
backend:
serviceName: lang-go
servicePort: 7777