-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finish a first full version of Slinky helm chart
Ref #52
- Loading branch information
Showing
17 changed files
with
142 additions
and
69 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,37 @@ | ||
# Slinky Helm Chart | ||
|
||
## Installation | ||
|
||
### Pre-requisites | ||
|
||
- A Kubernetes cluster | ||
- Helm | ||
|
||
### Quick-Start | ||
|
||
```sh | ||
helm install slinky . | ||
``` | ||
|
||
### Ingress | ||
|
||
The Slinky chart supports setting up an Ingress, provided your cluster is set up to create and set up Ingress resources. | ||
|
||
To install the chart with Ingress, you must provide the following values in your `helm install` command: | ||
|
||
- `ingress.enabled` | ||
- `ingress.host` | ||
- `ingress.tls.secretName` | ||
- `ingress.clusterIssuer` | ||
|
||
As an example, | ||
|
||
```sh | ||
helm install \ | ||
--set ingress.enabled=true \ | ||
--set ingress.host=api.example.org \ | ||
--set ingress.tls.secretName=my-tls-secret-name \ | ||
--set ingress.clusterIssuer=my-cluster-issuer \ | ||
slinky . | ||
``` | ||
|
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 +1,21 @@ | ||
Hi, this is a TODO! | ||
------------------------------------------------------------------------------- | ||
_ _ _ | ||
___| (_)_ __ | | ___ _ | ||
/ __| | | '_ \| |/ / | | | | ||
\__ \ | | | | | <| |_| | | ||
|___/_|_|_| |_|_|\_\\__, | | ||
|___/ | ||
------------------------------------------------------------------------------- | ||
version: {{ .Chart.AppVersion }} | ||
|
||
** Please be patient while the chart is being deployed and services are available ** | ||
You can check their status with kubectl get pods | ||
{{- if .Values.ingress.enabled }} | ||
|
||
Ingress enabled at https://{{ .Values.ingress.host }}/slinky | ||
|
||
{{- else}} | ||
|
||
Ingress not enabled. Use `kubectl port-forward` to inspect services. | ||
|
||
{{- 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
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,39 @@ | ||
{{- if .Values.ingress.enabled }} | ||
--- | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: slinky | ||
labels: {{- include "slinky.labels" . | nindent 4 }} | ||
annotations: | ||
nginx.ingress.kubernetes.io/enable-cors: "true" | ||
nginx.ingress.kubernetes.io/cors-allow-methods: "GET, POST, OPTIONS" | ||
nginx.ingress.kubernetes.io/cors-allow-origin: '$http_origin' | ||
nginx.ingress.kubernetes.io/cors-allow-credentials: "true" | ||
nginx.ingress.kubernetes.io/rewrite-target: /$2 | ||
nginx.ingress.kubernetes.io/use-regex: "true" | ||
nginx.ingress.kubernetes.io/ssl-redirect: "true" | ||
cert-manager.io/cluster-issuer: {{ .Values.ingress.clusterIssuer}} | ||
{{- with .Values.ingress.annotations }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
{{- if .Values.ingress.enabled }} | ||
ingressClassName: {{ .Values.ingress.className }} | ||
tls: | ||
- hosts: | ||
- {{ .Values.ingress.host }} | ||
secretName: {{ .Values.ingress.tls.secretName }} | ||
rules: | ||
- host: {{ .Values.ingress.host }} | ||
http: | ||
paths: | ||
- path: /slinky(/|$)(.*) | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: web | ||
port: | ||
number: {{ .Values.port.web }} | ||
{{- end}} | ||
{{- 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
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
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