Last active
November 13, 2019 11:17
-
-
Save akosveres/bdc4db57de0f69aff7d5c64bf63e498e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
annotations: | |
finalizers: | |
- kubernetes.io/pvc-protection | |
name: traefik-local-path-pvc | |
namespace: kube-system | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 2Gi | |
storageClassName: local-path | |
volumeMode: Filesystem | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: traefik | |
chart: traefik-1.77.1 | |
heritage: Tiller | |
release: traefik | |
name: traefik | |
namespace: kube-system | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: traefik | |
release: traefik | |
strategy: | |
rollingUpdate: | |
maxSurge: 25% | |
maxUnavailable: 25% | |
type: RollingUpdate | |
template: | |
metadata: | |
labels: | |
app: traefik | |
chart: traefik-1.77.1 | |
heritage: Tiller | |
release: traefik | |
spec: | |
containers: | |
- args: | |
- --defaultentrypoints=http,https | |
- --entrypoints=Name:https Address::443 TLS | |
- --entrypoints=Name:http Address::80 | |
- --acme.email=test@akos.me | |
- --acme.entryPoint=https | |
- --acme.storage=/local-storage/acme.json | |
- --acme.onHostRule=true | |
- --acme.httpchallenge.entrypoint=http | |
- --kubernetes | |
# - --configfile=/config/traefik.toml | |
image: traefik:1.7.14 | |
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 | |
- containerPort: 8080 | |
name: dash | |
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-storage | |
name: letsencrypt | |
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: letsencrypt | |
persistentVolumeClaim: | |
claimName: traefik-local-path-pvc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment