Last active
May 29, 2019 21:22
-
-
Save chainlink/a27df555962bfc50d06d50e4c06cc712 to your computer and use it in GitHub Desktop.
traefik ingress
This file contains hidden or 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
# Source: traefik/templates/configmap.yaml | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: release-name-traefik | |
labels: | |
app: traefik | |
chart: "traefik-1.68.1" | |
release: "release-name" | |
heritage: "Tiller" | |
data: | |
traefik.toml: | | |
# traefik.toml | |
logLevel = "INFO" | |
defaultEntryPoints = ["http", "httpn"] | |
[entryPoints] | |
[entryPoints.http] | |
address = ":80" | |
compress = true | |
[entryPoints.httpn] | |
address = ":8880" | |
compress = true | |
[kubernetes] | |
[traefikLog] | |
format = "json" |
This file contains hidden or 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
# Source: traefik/templates/deployment.yaml | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: release-name-traefik | |
labels: | |
app: traefik | |
chart: "traefik-1.68.1" | |
release: "release-name" | |
heritage: "Tiller" | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: traefik | |
release: release-name | |
template: | |
metadata: | |
annotations: | |
checksum/config: c18803891296be7d1a1ec7126010c25d9c5f8765c0cc604627ad24dfdda6ba46 | |
labels: | |
app: traefik | |
chart: "traefik-1.68.1" | |
release: "release-name" | |
heritage: "Tiller" | |
spec: | |
serviceAccountName: release-name-traefik | |
terminationGracePeriodSeconds: 60 | |
containers: | |
- image: traefik:1.7.9 | |
name: release-name-traefik | |
resources: | |
{} | |
readinessProbe: | |
tcpSocket: | |
port: 80 | |
failureThreshold: 1 | |
initialDelaySeconds: 10 | |
periodSeconds: 10 | |
successThreshold: 1 | |
timeoutSeconds: 2 | |
livenessProbe: | |
tcpSocket: | |
port: 80 | |
failureThreshold: 3 | |
initialDelaySeconds: 10 | |
periodSeconds: 10 | |
successThreshold: 1 | |
timeoutSeconds: 2 | |
volumeMounts: | |
- mountPath: /config | |
name: config | |
ports: | |
- name: http | |
containerPort: 80 | |
protocol: TCP | |
- name: httpn | |
containerPort: 8880 | |
protocol: TCP | |
- name: https | |
containerPort: 443 | |
protocol: TCP | |
args: | |
- --configfile=/config/traefik.toml | |
volumes: | |
- name: config | |
configMap: | |
name: release-name-traefik |
This file contains hidden or 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
kind: ServiceAccount | |
apiVersion: v1 | |
metadata: | |
name: release-name-traefik | |
--- | |
kind: ClusterRole | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: release-name-traefik | |
rules: | |
- apiGroups: | |
- "" | |
resources: | |
- pods | |
- services | |
- endpoints | |
- secrets | |
verbs: | |
- get | |
- list | |
- watch | |
- apiGroups: | |
- extensions | |
resources: | |
- ingresses | |
verbs: | |
- get | |
- list | |
- watch | |
- apiGroups: | |
- extensions | |
resources: | |
- ingresses/status | |
verbs: | |
- update | |
--- | |
kind: ClusterRoleBinding | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: release-name-traefik | |
roleRef: | |
apiGroup: rbac.authorization.k8s.io | |
kind: ClusterRole | |
name: release-name-traefik | |
subjects: | |
- kind: ServiceAccount | |
name: release-name-traefik | |
namespace: default |
This file contains hidden or 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
--- | |
# Source: traefik/templates/service.yaml | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: release-name-traefik | |
labels: | |
app: traefik | |
chart: "traefik-1.68.1" | |
release: "release-name" | |
heritage: "Tiller" | |
annotations: | |
spec: | |
type: LoadBalancer | |
externalTrafficPolicy: Cluster | |
selector: | |
app: traefik | |
release: release-name | |
ports: | |
- port: 80 | |
name: http | |
targetPort: http | |
- port: 443 | |
name: https | |
targetPort: httpn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment