mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-03 08:37:03 +02:00
docs(examples): Add some deployment examples
This commit is contained in:
parent
592e2a35dc
commit
216592df83
10 changed files with 280 additions and 34 deletions
25
examples/kustomize/README.md
Normal file
25
examples/kustomize/README.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
# Deployment example using Kustomize
|
||||
|
||||
### Deployment
|
||||
|
||||
#### Build
|
||||
|
||||
In order to view the resulting manifest for this example through Kustomize, issue
|
||||
the following command:
|
||||
|
||||
```console
|
||||
kubectl kustomize --enable-helm .
|
||||
```
|
||||
|
||||
This will print the rendered manifest(s) to your console.
|
||||
|
||||
#### Apply
|
||||
|
||||
In order to deploy the manifest for this example through Kustomize, issue the
|
||||
following command:
|
||||
|
||||
```console
|
||||
kubectl kustomize --enable-helm . | kubectl apply -f -
|
||||
```
|
||||
|
||||
This will apply the rendered manifest(s) to your cluster.
|
16
examples/kustomize/kustomization.yaml
Normal file
16
examples/kustomize/kustomization.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
helmCharts:
|
||||
- name: app-template
|
||||
repo: https://bjw-s.github.io/helm-charts/
|
||||
# this example is not automatically updated, so be sure to use the latest chart version
|
||||
version: 0.1.1
|
||||
releaseName: &releaseName vaultwarden
|
||||
namespace: &releaseNamespace default
|
||||
valuesFile: values.yaml
|
||||
commonAnnotations:
|
||||
meta.helm.sh/release-name: *releaseName
|
||||
meta.helm.sh/release-namespace: *releaseNamespace
|
||||
commonLabels:
|
||||
app.kubernetes.io/managed-by: Helm
|
56
examples/kustomize/values.yaml
Normal file
56
examples/kustomize/values.yaml
Normal file
|
@ -0,0 +1,56 @@
|
|||
image:
|
||||
# -- image repository
|
||||
repository: vaultwarden/server
|
||||
# -- image pull policy
|
||||
pullPolicy: IfNotPresent
|
||||
# -- image tag
|
||||
# this example is not automatically updated, so be sure to use the latest image
|
||||
tag: 1.25.2
|
||||
|
||||
strategy:
|
||||
type: Recreate
|
||||
|
||||
# -- environment variables.
|
||||
# See [image docs](https://github.com/dani-garcia/vaultwarden/blob/main/.env.template) for more details.
|
||||
env:
|
||||
# -- Config dir
|
||||
DATA_FOLDER: "config"
|
||||
|
||||
# -- Configures service settings for the chart.
|
||||
service:
|
||||
main:
|
||||
ports:
|
||||
http:
|
||||
port: 80
|
||||
websocket:
|
||||
enabled: true
|
||||
port: 3012
|
||||
|
||||
ingress:
|
||||
# -- Enable and configure ingress settings for the chart under this key.
|
||||
main:
|
||||
enabled: false
|
||||
hosts:
|
||||
- host: chart-example.local
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
service:
|
||||
port: http
|
||||
- path: /notifications/hub/negotiate
|
||||
pathType: Prefix
|
||||
service:
|
||||
port: http
|
||||
- path: /notifications/hub
|
||||
pathType: Prefix
|
||||
service:
|
||||
port: websocket
|
||||
|
||||
# -- Configure persistence settings for the chart under this key.
|
||||
persistence:
|
||||
config:
|
||||
enabled: true
|
||||
type: pvc
|
||||
accessMode: ReadWriteOnce
|
||||
size: 1Gi
|
||||
mountPath: /config
|
Loading…
Add table
Add a link
Reference in a new issue