Skip to content

Commit

Permalink
Added support for clusterIP and headless services. (helm#8312)
Browse files Browse the repository at this point in the history
Signed-off-by: Arvind Gupta <guptaarvindk@gmail.com>
  • Loading branch information
guptaarvindk authored and k8s-ci-robot committed Oct 9, 2018
1 parent 80a49ba commit d2983fb
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 11 deletions.
2 changes: 1 addition & 1 deletion stable/chartmuseum/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: Helm Chart Repository with support for Amazon S3 and Google Cloud Storage
name: chartmuseum
version: 1.6.1
version: 1.6.2
appVersion: 0.7.1
home: https://github.com/chartmuseum/chartmuseum
icon: https://raw.githubusercontent.com/chartmuseum/chartmuseum/master/logo.png
Expand Down
22 changes: 12 additions & 10 deletions stable/chartmuseum/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Please also see https://github.com/kubernetes-helm/chartmuseum
- [Uninstall](#uninstall)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->


## Prerequisites

Expand All @@ -46,7 +46,7 @@ kubectl create -f /path/to/storage_class.yaml
```

The following table lists common configurable parameters of the chart and
their default values. See values.yaml for all available options.
their default values. See values.yaml for all available options.

| Parameter | Description | Default |
|----------------------------------------|---------------------------------------------|-----------------------------------------------------|
Expand Down Expand Up @@ -108,6 +108,8 @@ their default values. See values.yaml for all available options.
| `gcp.secret.enabled` | Flag for the GCP service account | `false` |
| `gcp.secret.name` | Secret name for the GCP json file | `` |
| `gcp.secret.key` | Secret key for te GCP json file | `credentials.json` |
| `service.type` | Kubernetes Service type | `ClusterIP` |
| `service.clusterIP` | Static clusterIP or None for headless services| `nil` |

Specify each parameter using the `--set key=value[,key=value]` argument to
`helm install`.
Expand Down Expand Up @@ -165,7 +167,7 @@ env:
STORAGE_AMAZON_REGION: us-east-1
secret:
AWS_ACCESS_KEY_ID: "********" ## aws access key id value
AWS_SECRET_ACCESS_KEY: "********" ## aws access key secret value
AWS_SECRET_ACCESS_KEY: "********" ## aws access key secret value
```
Run command to install
Expand Down Expand Up @@ -318,7 +320,7 @@ env:
STORAGE_MICROSOFT_PREFIX:
secret:
AZURE_STORAGE_ACCOUNT: "********" ## azure storage account
AZURE_STORAGE_ACCESS_KEY: "********" ## azure storage account access key
AZURE_STORAGE_ACCESS_KEY: "********" ## azure storage account access key
```
Run command to install
Expand Down Expand Up @@ -346,7 +348,7 @@ env:
STORAGE_ALIBABA_ENDPOINT: oss-cn-beijing.aliyuncs.com
secret:
ALIBABA_CLOUD_ACCESS_KEY_ID: "********" ## alibaba OSS access key id
ALIBABA_CLOUD_ACCESS_KEY_SECRET: "********" ## alibaba OSS access key secret
ALIBABA_CLOUD_ACCESS_KEY_SECRET: "********" ## alibaba OSS access key secret
```
Run command to install
Expand Down Expand Up @@ -389,8 +391,8 @@ helm install --name my-chartmuseum -f custom.yaml stable/chartmuseum
```

### Using with local filesystem storage
By default chartmuseum uses local filesystem storage.
But on pod recreation it will lose all charts, to prevent that enable persistent storage.
By default chartmuseum uses local filesystem storage.
But on pod recreation it will lose all charts, to prevent that enable persistent storage.

```yaml
env:
Expand Down Expand Up @@ -438,12 +440,12 @@ parameters:
adminSecretNamespace: default
pool: chartstore
userId: user
userSecretName: thesecret
userSecretName: thesecret
```

## Uninstall
## Uninstall

By default, a deliberate uninstall will result in the persistent volume
By default, a deliberate uninstall will result in the persistent volume
claim being deleted.

```shell
Expand Down
5 changes: 5 additions & 0 deletions stable/chartmuseum/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ metadata:
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if eq .Values.service.type "ClusterIP" }}
{{- if .Values.service.clusterIP }}
clusterIP: {{ .Values.service.clusterIP }}
{{- end }}
{{- end }}
ports:
- port: {{ .Values.service.externalPort }}
{{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePort))) }}
Expand Down
1 change: 1 addition & 0 deletions stable/chartmuseum/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ replica:
# iam.amazonaws.com/role: role-arn
service:
type: ClusterIP
# clusterIP: None
externalPort: 8080
nodePort:
annotations: {}
Expand Down

0 comments on commit d2983fb

Please sign in to comment.