Enabled Traefik access logs
This commit is contained in:
parent
f18a30cd3e
commit
7a4b1c96bc
@ -37,23 +37,19 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 64Mi
|
memory: 64Mi
|
||||||
|
|
||||||
core:
|
core:
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 64Mi
|
memory: 64Mi
|
||||||
|
|
||||||
jobservice:
|
jobservice:
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 64Mi
|
memory: 64Mi
|
||||||
|
|
||||||
registry:
|
registry:
|
||||||
registry:
|
registry:
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 64Mi
|
memory: 64Mi
|
||||||
|
|
||||||
controller:
|
controller:
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
|
@ -14,3 +14,62 @@ spec:
|
|||||||
port: 443
|
port: 443
|
||||||
name: https
|
name: https
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: DaemonSet
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
k8s-app: traefik-ingress-lb
|
||||||
|
k8s.scw.cloud/ingress: traefik
|
||||||
|
k8s.scw.cloud/object: DaemonSet
|
||||||
|
k8s.scw.cloud/system: ingress
|
||||||
|
name: ingress-traefik
|
||||||
|
namespace: kube-system
|
||||||
|
spec:
|
||||||
|
revisionHistoryLimit: 10
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
k8s-app: traefik-ingress-lb
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
k8s-app: traefik-ingress-lb
|
||||||
|
name: ingress-traefik
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- args:
|
||||||
|
- --api
|
||||||
|
- --kubernetes
|
||||||
|
- --logLevel=INFO
|
||||||
|
- --defaultentrypoints=http,https
|
||||||
|
- --entrypoints=Name:https Address::443 TLS
|
||||||
|
- --entrypoints=Name:http Address::80
|
||||||
|
- --accesslog
|
||||||
|
- --accesslog.format=json
|
||||||
|
image: docker.io/traefik:1.7
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
name: ingress-traefik
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
hostPort: 80
|
||||||
|
name: http
|
||||||
|
protocol: TCP
|
||||||
|
- containerPort: 443
|
||||||
|
hostPort: 443
|
||||||
|
name: https
|
||||||
|
protocol: TCP
|
||||||
|
- containerPort: 8080
|
||||||
|
name: admin
|
||||||
|
protocol: TCP
|
||||||
|
securityContext:
|
||||||
|
capabilities:
|
||||||
|
add:
|
||||||
|
- NET_BIND_SERVICE
|
||||||
|
drop:
|
||||||
|
- ALL
|
||||||
|
dnsPolicy: ClusterFirst
|
||||||
|
restartPolicy: Always
|
||||||
|
serviceAccount: ingress-traefik
|
||||||
|
serviceAccountName: ingress-traefik
|
||||||
|
Loading…
Reference in New Issue
Block a user