-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d5462d
commit 5430fb2
Showing
14 changed files
with
525 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: ingressroutes.traefik.containo.us | ||
|
||
spec: | ||
group: traefik.containo.us | ||
version: v1alpha1 | ||
names: | ||
kind: IngressRoute | ||
plural: ingressroutes | ||
singular: ingressroute | ||
scope: Namespaced | ||
|
||
--- | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: ingressroutetcps.traefik.containo.us | ||
|
||
spec: | ||
group: traefik.containo.us | ||
version: v1alpha1 | ||
names: | ||
kind: IngressRouteTCP | ||
plural: ingressroutetcps | ||
singular: ingressroutetcp | ||
scope: Namespaced | ||
|
||
--- | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: middlewares.traefik.containo.us | ||
|
||
spec: | ||
group: traefik.containo.us | ||
version: v1alpha1 | ||
names: | ||
kind: Middleware | ||
plural: middlewares | ||
singular: middleware | ||
scope: Namespaced | ||
|
||
--- | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: tlsoptions.traefik.containo.us | ||
|
||
spec: | ||
group: traefik.containo.us | ||
version: v1alpha1 | ||
names: | ||
kind: TLSOption | ||
plural: tlsoptions | ||
singular: tlsoption | ||
scope: Namespaced | ||
|
||
--- | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: traefikservices.traefik.containo.us | ||
|
||
spec: | ||
group: traefik.containo.us | ||
version: v1alpha1 | ||
names: | ||
kind: TraefikService | ||
plural: traefikservices | ||
singular: traefikservice | ||
scope: Namespaced | ||
|
||
|
||
--- | ||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
metadata: | ||
name: traefik-ingress-controller | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- services | ||
- endpoints | ||
- secrets | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- extensions | ||
resources: | ||
- ingresses | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- extensions | ||
resources: | ||
- ingresses/status | ||
verbs: | ||
- update | ||
- apiGroups: | ||
- traefik.containo.us | ||
resources: | ||
- middlewares | ||
- ingressroutes | ||
- traefikservices | ||
- ingressroutetcps | ||
- tlsoptions | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
|
||
--- | ||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
metadata: | ||
name: traefik-ingress-controller | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: traefik-ingress-controller | ||
subjects: | ||
- kind: ServiceAccount | ||
name: traefik | ||
namespace: kube-system |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: traefik | ||
release: traefik | ||
name: traefik | ||
namespace: kube-system | ||
|
||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: traefik | ||
release: traefik | ||
template: | ||
metadata: | ||
labels: | ||
app: traefik | ||
release: traefik | ||
spec: | ||
containers: | ||
- args: | ||
- --api.insecure | ||
- --accesslog | ||
- --global.checknewversion=true | ||
- --entryPoints.traefik.address=:8100 | ||
- --entryPoints.web.address=:80 | ||
- --entryPoints.websecure.address=:443 | ||
- --certificatesresolvers.default.acme.tlschallenge | ||
# Please note that this is the staging Let's Encrypt server configuration. | ||
# Once you get things working, you should remove that following line. | ||
- --certificatesresolvers.default.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory | ||
- --certificatesresolvers.default.acme.email={YOUR-E-MAIL} | ||
- --certificatesresolvers.default.acme.storage=acme.json | ||
- --api.dashboard=true | ||
- --ping=true | ||
- --providers.kubernetescrd | ||
# Use log level= INFO or DEBUG | ||
- --log.level=INFO | ||
image: traefik:2.1.4 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
failureThreshold: 3 | ||
httpGet: | ||
path: /ping | ||
port: 8100 | ||
scheme: HTTP | ||
initialDelaySeconds: 10 | ||
periodSeconds: 10 | ||
successThreshold: 1 | ||
timeoutSeconds: 2 | ||
name: traefik | ||
ports: | ||
- containerPort: 8100 | ||
name: admin | ||
protocol: TCP | ||
- containerPort: 80 | ||
name: web | ||
protocol: TCP | ||
- containerPort: 443 | ||
name: websecure | ||
protocol: TCP | ||
readinessProbe: | ||
failureThreshold: 1 | ||
httpGet: | ||
path: /ping | ||
port: 8100 | ||
scheme: HTTP | ||
initialDelaySeconds: 10 | ||
periodSeconds: 10 | ||
successThreshold: 1 | ||
timeoutSeconds: 2 | ||
resources: {} | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
dnsPolicy: ClusterFirst | ||
restartPolicy: Always | ||
schedulerName: default-scheduler | ||
securityContext: {} | ||
serviceAccount: traefik | ||
serviceAccountName: traefik | ||
terminationGracePeriodSeconds: 60 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# ServiceAccount | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: traefik | ||
namespace: kube-system | ||
|
||
# Service | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: traefik | ||
release: traefik | ||
name: traefik | ||
namespace: kube-system | ||
spec: | ||
externalIPs: | ||
- 192.168.99.100 | ||
externalTrafficPolicy: Cluster | ||
ports: | ||
- name: web | ||
nodePort: 31909 | ||
port: 80 | ||
protocol: TCP | ||
targetPort: 80 | ||
- name: websecure | ||
nodePort: 30584 | ||
port: 443 | ||
protocol: TCP | ||
targetPort: 443 | ||
- name: admin | ||
nodePort: 32316 | ||
port: 8100 | ||
protocol: TCP | ||
targetPort: 8100 | ||
selector: | ||
app: traefik | ||
release: traefik | ||
sessionAffinity: None | ||
type: LoadBalancer | ||
status: | ||
loadBalancer: {} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
--- | ||
kind: Deployment | ||
apiVersion: extensions/v1beta1 | ||
metadata: | ||
name: bear | ||
labels: | ||
app: animals | ||
animal: bear | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: animals | ||
task: bear | ||
template: | ||
metadata: | ||
labels: | ||
app: animals | ||
task: bear | ||
version: v0.0.1 | ||
spec: | ||
containers: | ||
- name: bear | ||
image: supergiantkir/animals:bear | ||
ports: | ||
- containerPort: 80 | ||
--- | ||
kind: Deployment | ||
apiVersion: extensions/v1beta1 | ||
metadata: | ||
name: moose | ||
labels: | ||
app: animals | ||
animal: moose | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: animals | ||
task: moose | ||
template: | ||
metadata: | ||
labels: | ||
app: animals | ||
task: moose | ||
version: v0.0.1 | ||
spec: | ||
containers: | ||
- name: moose | ||
image: supergiantkir/animals:moose | ||
ports: | ||
- containerPort: 80 | ||
--- | ||
kind: Deployment | ||
apiVersion: extensions/v1beta1 | ||
metadata: | ||
name: hare | ||
labels: | ||
app: animals | ||
animal: hare | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: animals | ||
task: hare | ||
template: | ||
metadata: | ||
labels: | ||
app: animals | ||
task: hare | ||
version: v0.0.1 | ||
spec: | ||
containers: | ||
- name: hare | ||
image: supergiantkir/animals:hare | ||
ports: | ||
- containerPort: 80 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: animals | ||
annotations: | ||
kubernetes.io/ingress.class: traefik | ||
spec: | ||
rules: | ||
- host: hare.minikube | ||
http: | ||
paths: | ||
- path: / | ||
backend: | ||
serviceName: hare | ||
servicePort: http | ||
- host: bear.minikube | ||
http: | ||
paths: | ||
- path: / | ||
backend: | ||
serviceName: bear | ||
servicePort: http | ||
- host: moose.minikube | ||
http: | ||
paths: | ||
- path: / | ||
backend: | ||
serviceName: moose | ||
servicePort: http |
Oops, something went wrong.