-
Notifications
You must be signed in to change notification settings - Fork 16
/
httpbin.yaml
46 lines (46 loc) · 979 Bytes
/
httpbin.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
apiVersion: v1
kind: Service
metadata:
name: httpbin
spec:
ports:
- port: 80
targetPort: 80
selector:
app: httpbin
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: httpbin
spec:
selector:
matchLabels:
app: httpbin
replicas: 1
template:
metadata:
labels:
app: httpbin
spec:
containers:
- name: httpbin
image: kennethreitz/httpbin
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: httpbin-ingress
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/auth-url: http://auth.yourdomain.com
# Alternatively, you can just refer to internal service without exposing auth to the outside
#nginx.ingress.kubernetes.io/auth-url: http://ldap-auth-proxy.default.svc.cluster.local
spec:
rules:
- host: httpbin.yourdomain.com
http:
paths:
- backend:
serviceName: httpbin
servicePort: 80