-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* first draft * first draft * working configuration * update preview script * Update Phonebook/readme.md * Update demo/assets/Dockerfile * fix assets not showing up in demo * finally fix traefik on current version resolves #578 * Restyled by prettier (#763) Co-authored-by: Restyled.io <[email protected]> * update pr pipeline * update preview pipeline * update preview pipeline * Update demo/values.yml * Restyled by prettier (#764) Co-authored-by: Restyled.io <[email protected]> * - recreate pods on update - add to docs - rename fronted pods and services - adds health enpoint from #594 Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com> Co-authored-by: Restyled.io <[email protected]>
- Loading branch information
1 parent
63ea2e5
commit afc5d4d
Showing
18 changed files
with
241 additions
and
176 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
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
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
dependencies: | ||
- name: traefik | ||
repository: https://containous.github.io/traefik-helm-chart | ||
version: 3.4.0 | ||
digest: sha256:69f27dcbfa7eacbaa64365626276506c7050ab2c65d0db8780f4c2adc882d3d6 | ||
generated: '2020-04-08T14:26:29.6008416+02:00' | ||
- name: traefik | ||
repository: https://helm.traefik.io/traefik | ||
version: 9.4.3 | ||
digest: sha256:fd64faa165f4cd75bce09c96fd7e5c0222fde2427ace15ce144e32bc452869f3 | ||
generated: "2020-10-11T21:50:24.9918945+02:00" |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
dependencies: | ||
- name: traefik | ||
condition: traefik.enabled | ||
version: 3.4.0 | ||
appVersion: 2.1.3 | ||
repository: https://containous.github.io/traefik-helm-chart | ||
version: 9.4.3 | ||
appVersion: 2.3.1 | ||
repository: https://helm.traefik.io/traefik | ||
|
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
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 |
---|---|---|
@@ -1,30 +1,37 @@ | ||
{{- if .Values.ingress.enabled -}} | ||
{{- $fullName := include "phonebook.fullname" . -}} | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
apiVersion: traefik.containo.us/v1alpha1 | ||
kind: IngressRoute | ||
metadata: | ||
name: {{ $fullName }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app.kubernetes.io/name: {{ include "phonebook.name" . }} | ||
app.kubernetes.io/name: {{ include "phonebook.name" . }}-frontend | ||
helm.sh/chart: {{ include "phonebook.chart" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
annotations: | ||
traefik.ingress.kubernetes.io/router.entrypoints: "web" | ||
traefik.ingress.kubernetes.io/router.priority: "42" | ||
traefik.ingress.kubernetes.io/router.tls: "true" | ||
traefik.ingress.kubernetes.io/router.tls.certresolver: http-01 | ||
kubernetes.io/ingress.class: traefik | ||
{{- with .Values.ingress.annotations }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
rules: | ||
- host: {{ .Values.host }} | ||
http: | ||
paths: | ||
- path: / | ||
backend: | ||
serviceName: {{ $fullName }} | ||
servicePort: http | ||
entryPoints: | ||
- web | ||
- websecure | ||
routes: | ||
- kind: Rule | ||
match: Host(`{{ .Values.host }}`) | ||
priority: 40 | ||
middlewares: | ||
- name: ratelimit | ||
namespace: {{ .Release.Namespace }} | ||
services: | ||
- kind: Service | ||
name: {{ $fullName }}-frontend | ||
namespace: {{ .Release.Namespace }} | ||
passHostHeader: true | ||
port: 80 | ||
strategy: RoundRobin | ||
weight: 10 | ||
tls: | ||
certResolver: default | ||
options: | ||
name: tlsoption | ||
namespace: {{ .Release.Namespace }} | ||
{{- end }} |
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
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
Oops, something went wrong.