We have clarified our Privacy Statement even further. Please have a look at our changes.
Browse Source

traefik local path

master
Henning Jacobs 2 months ago
parent
commit
f28cfba150
4 changed files with 117 additions and 1 deletions
  1. +4
    -0
      install.sh
  2. +1
    -1
      manifests/traefik-config.yaml
  3. +99
    -0
      manifests/traefik-deployment.yaml
  4. +13
    -0
      manifests/traefik-pvc.yaml

+ 4
- 0
install.sh View File

@@ -8,6 +8,10 @@ git clone https://github.com/kubernetes-incubator/metrics-server.git
kubectl apply -f metrics-server/deploy/1.8+/
kubectl top node

sudo mkdir /opt/local-path-provisioner
kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yaml
kubectl patch storageclass local-path -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'

git clone https://github.com/hjacobs/kube-ops-view.git
kubectl apply -f kube-ops-view/deploy/


+ 1
- 1
manifests/traefik-config.yaml View File

@@ -30,7 +30,7 @@ data:
format = "json"
[acme]
email = "henning@jacobs1.de"
storage = "acme.json"
storage = "/local-path/acme.json"
entryPoint = "https"
onHostRule = true
[acme.tlsChallenge]

+ 99
- 0
manifests/traefik-deployment.yaml View File

@@ -0,0 +1,99 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: traefik
namespace: kube-system
labels:
app: traefik
chart: traefik-1.76.1
heritage: Tiller
release: traefik
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: traefik
release: traefik
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
annotations:
checksum/config: d545a9b2fbf68183392d960fb3359f64d8c77e5e6d809078c57fcea66cc5fee0
creationTimestamp: null
labels:
app: traefik
chart: traefik-1.76.1
heritage: Tiller
release: traefik
spec:
containers:
- args:
- --configfile=/config/traefik.toml
image: traefik:1.7.12
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
path: /ping
port: 80
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 2
name: traefik
ports:
- containerPort: 80
name: http
protocol: TCP
- containerPort: 8880
name: httpn
protocol: TCP
- containerPort: 443
name: https
protocol: TCP
readinessProbe:
failureThreshold: 1
httpGet:
path: /ping
port: 80
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 2
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /config
name: config
- mountPath: /ssl
name: ssl
- mountPath: /local-path
name: local-path
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: traefik
serviceAccountName: traefik
terminationGracePeriodSeconds: 60
volumes:
- configMap:
defaultMode: 420
name: traefik
name: config
- name: ssl
secret:
defaultMode: 420
secretName: traefik-default-cert
- name: local-path
persistentVolumeClaim:
claimName: traefik-local-path-pvc

+ 13
- 0
manifests/traefik-pvc.yaml View File

@@ -0,0 +1,13 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: traefik-local-path-pvc
namespace: kube-system
spec:
accessModes:
- ReadWriteOnce
storageClassName: local-path
resources:
requests:
storage: 2Gi


Loading…
Cancel
Save