-
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.
Fully working helm chart
- Loading branch information
Jack Lindamood
authored
Mar 26, 2021
1 parent
3591c6b
commit 1258799
Showing
10 changed files
with
192 additions
and
188 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -29,11 +29,11 @@ jobs: | |
uses: helm/[email protected] | ||
- name: Install helm chart | ||
run: helm install varnish ./charts/varnish | ||
# - name: Wait for deployment to finish | ||
# timeout-minutes: 1 | ||
# run: kubectl rollout status --watch deployment/varnish | ||
# - name: Test helm chart | ||
# run: helm test varnish | ||
- name: Wait for deployment to finish | ||
timeout-minutes: 1 | ||
run: kubectl rollout status --watch deployment/varnish | ||
- name: Test helm chart | ||
run: helm test varnish | ||
- name: Remove helm chart | ||
run: helm uninstall varnish | ||
- name: Run chart-releaser | ||
|
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,28 @@ | ||
name: Release Charts | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Run chart-testing (lint) | ||
id: lint | ||
uses: helm/[email protected] | ||
with: | ||
command: lint | ||
- name: Create kind cluster | ||
uses: helm/[email protected] | ||
- name: Install helm chart | ||
run: helm install varnish ./charts/varnish | ||
- name: Wait for deployment to finish | ||
timeout-minutes: 1 | ||
run: kubectl rollout status --watch deployment/varnish | ||
- name: Test helm chart | ||
run: helm test varnish | ||
- name: Remove helm chart | ||
run: helm uninstall varnish |
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 |
---|---|---|
@@ -1,3 +1,30 @@ | ||
# varnish | ||
Custom varnish install | ||
# varnish | ||
Custom varnish helm chart for Cresta. | ||
|
||
This chart is intended to have varnish forward to nginx, which | ||
can forward downstream. Nginx is used so that we can connect to SSL | ||
backends and do dynamic DNS resolution with the free version of varnish. | ||
|
||
## Dynamic DNS | ||
|
||
This is libvmod-dynamic in the free version, but we can get this with the core | ||
nginx version via proxy_pass | ||
|
||
See the following for more information: | ||
* https://github.com/nigoroll/libvmod-dynamic | ||
|
||
## SSL Backends | ||
|
||
This is only in the paid version of varnish. Some people use stunnel, but we | ||
want dynamic SSL backends (changing hostnames), and stunnel only supports | ||
static hostnames. We can again get this in nginx with proxy_pass variables. | ||
|
||
See the following for more information: | ||
* https://www.stunnel.org/ | ||
* https://docs.varnish-software.com/varnish-cache-plus/features/backend-ssl/ | ||
|
||
|
||
# This chart | ||
|
||
This chart assumes you want to configure your varnish and nginx config via helm. | ||
It also adds a third docker container for varnishncsa so you can get access logs. |
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,9 +1,14 @@ | ||
apiVersion: v2 | ||
name: varnish | ||
description: A Helm chart for varnish on Kubernetes | ||
home: https://github.com/cresta/varnish | ||
|
||
type: application | ||
|
||
version: 0.1.0 | ||
version: 0.2.0 | ||
|
||
appVersion: "6.5.1-a" | ||
|
||
maintainers: | ||
- name: cep21 | ||
url: https://github.com/cep21 |
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,8 +1,8 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "varnish.fullname" . }} | ||
name: {{ include "varnish.fullname" . }}-varnish | ||
labels: | ||
{{- include "varnish.labels" . | nindent 4 }} | ||
data: | ||
{{ toYaml .Values.vcl | indent 2 }} | ||
{{ toYaml .Values.varnish.vcl | indent 2 }} |
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.