Expose squid via traefik (behind auth)
This commit is contained in:
parent
652662dbdf
commit
be76ff95d4
|
@ -91,3 +91,34 @@ spec:
|
|||
- name: auth
|
||||
mountPath: /etc/squid/passwd
|
||||
subPath: htpasswd
|
||||
|
||||
---
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
namespace: riju
|
||||
name: riju-proxy
|
||||
spec:
|
||||
selector:
|
||||
app: riju-proxy
|
||||
ports:
|
||||
- name: http
|
||||
port: 3128
|
||||
targetPort: 3128
|
||||
|
||||
---
|
||||
kind: IngressRoute
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
metadata:
|
||||
namespace: riju
|
||||
name: riju-proxy
|
||||
spec:
|
||||
entryPoints:
|
||||
- proxy
|
||||
routes:
|
||||
- kind: Rule
|
||||
match: "PathPrefix(`/`)"
|
||||
services:
|
||||
- namespace: riju
|
||||
name: riju-proxy
|
||||
port: 3128
|
||||
|
|
|
@ -7,6 +7,13 @@ metadata:
|
|||
data:
|
||||
traefik.yaml: |
|
||||
entryPoints:
|
||||
proxy:
|
||||
address: ":3128"
|
||||
http:
|
||||
tls:
|
||||
certResolver: riju
|
||||
domains:
|
||||
- main: k8s.riju.codes
|
||||
http:
|
||||
address: ":8000"
|
||||
https:
|
||||
|
|
|
@ -124,6 +124,8 @@ spec:
|
|||
selector:
|
||||
app: traefik
|
||||
ports:
|
||||
- port: 3128
|
||||
name: squid
|
||||
- port: 80
|
||||
name: http
|
||||
targetPort: 8000
|
||||
|
|
Loading…
Reference in New Issue