|
| 1 | +# Storybook Chart packaged by Indiegogo |
| 2 | + |
| 3 | +## TL;DR |
| 4 | + |
| 5 | +```bash |
| 6 | +$ helm repo add indiegogo https://charts.indiegogo.com |
| 7 | +$ helm install my-release indiegogo/storybook |
| 8 | +``` |
| 9 | + |
| 10 | +## Introduction |
| 11 | + |
| 12 | +This chart bootstraps a Storybook deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. |
| 13 | + |
| 14 | +## Prerequisites |
| 15 | + |
| 16 | +- Kubernetes 1.12+ |
| 17 | +- Helm 3.6.2 |
| 18 | + |
| 19 | +## Getting started with default values |
| 20 | + |
| 21 | +To get you started with modifying the default values to your liking/needs, use the below command to grab the latest `values.yaml` file: |
| 22 | + |
| 23 | +```bash |
| 24 | +$ helm show values indiegogo/storybook > values.yaml |
| 25 | +``` |
| 26 | + |
| 27 | +## Installing the Chart |
| 28 | + |
| 29 | +To install the chart with the release name `my-release`: |
| 30 | + |
| 31 | +```bash |
| 32 | +$ helm install my-release indiegogo/storybook |
| 33 | +``` |
| 34 | + |
| 35 | +The command deploys Storybook on the Kubernetes cluster in the default configuration. The [Parameters](#parameters) section lists the parameters that can be configured during installation. |
| 36 | + |
| 37 | +> **Tip**: List all releases using `helm list` |
| 38 | +
|
| 39 | +## Uninstalling the Chart |
| 40 | + |
| 41 | +To uninstall/delete the `my-release` deployment: |
| 42 | + |
| 43 | +```bash |
| 44 | +$ helm uninstall my-release |
| 45 | +``` |
| 46 | + |
| 47 | +> NOTE: If you used `-n namespace` when you installed the chart, be sure to use it again when you uninstall the chart, otherwise the associated dependency Kubernetes resources will not be deleted: |
| 48 | +
|
| 49 | +```bash |
| 50 | +$ helm uninstall -n namespace my-release |
| 51 | +``` |
| 52 | + |
| 53 | +The command removes all the Kubernetes components associated with the chart and deletes the release. |
| 54 | + |
| 55 | +## Parameters |
| 56 | + |
| 57 | + |
| 58 | +### Common parameters |
| 59 | + |
| 60 | +| Name | Type | Description | Default | |
| 61 | +| ------------------ | ------ | ---------------------------------------------------------------- | ------- | |
| 62 | +| `kubeVersion` | string | Override Kubernetes version | `nil` | |
| 63 | +| `nameOverride` | string | Partially override names.fullname | `nil` | |
| 64 | +| `fullnameOverride` | string | Fully override names.fullname | `nil` | |
| 65 | +| `commonLabels` | object | Labels to add to all deployed objects | `{}` | |
| 66 | +| `networkPort` | int | Deployment container, Deployment livenessProbe, and Service port | `80` | |
| 67 | + |
| 68 | + |
| 69 | +### Deployment parameters |
| 70 | + |
| 71 | +| Name | Type | Description | Default | |
| 72 | +| ------------------------ | ------- | -------------------------------------------------- | ------------------------------- | |
| 73 | +| `image.registry` | string | The Docker image registry | `"gcr.io"` | |
| 74 | +| `image.repository` | string | The Docker image repository | `"indiegogo-staging/storybook"` | |
| 75 | +| `image.tag` | string | The Docker image tag | `'latest'` | |
| 76 | +| `image.pullPolicy` | string | The Docker image pull policy | `"IfNotPresent"` | |
| 77 | +| `environment` | object | Custom/extra environment variables | `{}` | |
| 78 | +| `containerPort` | int | Storybook container port (overrides `networkPort`) | `nil` | |
| 79 | +| `replicaCount` | int | Number of Storybook replicas to deploy | `1` | |
| 80 | +| `strategy.type` | string | Deployment strategy type | `"RollingUpdate"` | |
| 81 | +| `strategy.rollingUpdate` | object | Rolling update deployment strategy options | `{}` | |
| 82 | +| `resources.requests` | object | CPU/memory resource requests | `{}` | |
| 83 | +| `resources.limits` | object | CPU/memory resource limits | `{}` | |
| 84 | +| `livenessProbeEnabled` | boolean | Enable the custom livenessProbe | `true` | |
| 85 | +| `livenessProbe` | object | Write your custom liveness probe here | `{}` | |
| 86 | +| `readinessProbeEnabled` | boolean | Enable the custom readinessProbe | `false` | |
| 87 | +| `readinessProbe` | object | Write your custom readiness probe here | `{}` | |
| 88 | +| `usePacificTime` | boolean | Use Pacific time instead of UTC in container | `false` | |
| 89 | + |
| 90 | + |
| 91 | +### Service parameters |
| 92 | + |
| 93 | +| Name | Type | Description | Default | |
| 94 | +| ---------------| ------ | ------------------------------------------------ | ------------ | |
| 95 | +| `service.port` | int | Storybook Service port (overrides `networkPort`) | `nil` | |
| 96 | +| `service.type` | string | Storybook Service Type | `"NodePort"` | |
| 97 | + |
| 98 | + |
| 99 | +### Ingress parameters |
| 100 | + |
| 101 | +| Name | Type | Description | Default | |
| 102 | +| --------------------------- | ------- | -------------------------- | ----------------- | |
| 103 | +| `ingress.enabled` | boolean | Enable/Disable Ingress | `true` | |
| 104 | +| `ingress.tls.enabled` | boolean | Enable/Disable Ingress TLS | `false` | |
| 105 | +| `ingress.tls.hosts` | list | Ingress TLS host(s) | see `values.yaml` | |
| 106 | +| `ingress.tls.secretName` | string | Ingress TLS Secret name | `nil` | |
| 107 | +| `ingress.rules.hosts` | list | Ingress rules host(s) | see `values.yaml` | |
| 108 | +| `ingress.customAnnotations` | object | Ingress custom annotations | `{}` | |
| 109 | + |
| 110 | + |
| 111 | +### Storage parameters |
| 112 | + |
| 113 | +| Name | Type | Description | Default | |
| 114 | +| ---------------------------------------- | ------- | ------------------------------------------------- | ------------ | |
| 115 | +| `storage.requestedSize` | string | Size of Persistent Volume Claim/Persistent Volume | `"10Gi"` | |
| 116 | +| `storage.className` | string | Type of storage (standard/ssd) | `"standard"` | |
| 117 | +| `storage.persistentVolume.enabled` | boolean | Enable to use an existing persistent disk | `false` | |
| 118 | +| `storage.persistentVolume.pdName` | string | Name of the existing persistent disk | `nil` | |
| 119 | +| `storage.persistentVolume.reclaimPolicy` | string | Reclamation of the persistent disk resources | `"Retain"` | |
| 120 | + |
| 121 | + |
| 122 | +Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, |
| 123 | + |
| 124 | +```bash |
| 125 | +$ helm install my-release \ |
| 126 | + --set replicaCount=1 \ |
| 127 | + indiegogo/storybook |
| 128 | +``` |
| 129 | + |
| 130 | +Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example, |
| 131 | + |
| 132 | +```bash |
| 133 | +$ helm install my-release -f values.yaml indiegogo/storybook |
| 134 | +``` |
| 135 | + |
| 136 | +> **Tip**: You can use the default [values.yaml](values.yaml) |
0 commit comments