This repository has been archived by the owner on Feb 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16.7k
[stable/artifactory] Postgresql requirement / ingress support / nginx optional #3242
Merged
Merged
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
60f6c73
Removed Postgresql own deployment and created dependency to stable/Po…
897860a
Fix versions
d15c6b2
bump chart version
4fdb81e
Fixed wrong Chart number for artifactory
bb67be7
Add documentation for Ingress, set Postgresql chart version, set pers…
ad0a8d3
Refresh requirements.lock
57cc740
Set version to 7.0.0, cecause the API to the chart changed
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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 |
---|---|---|
|
@@ -9,8 +9,8 @@ | |
This chart will do the following: | ||
|
||
* Deploy Artifactory-Pro (or OSS if set custom image) | ||
* Deploy a PostgreSQL database | ||
* Deploy an Nginx server | ||
* Deploy a PostgreSQL database using the stable/postgresql chart | ||
* Deploy an optional Nginx server | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add the optional ingress.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added information about TLS secrets and how to use. |
||
|
||
## Installing the Chart | ||
|
||
|
@@ -51,10 +51,6 @@ $ helm install --name artifactory \ | |
--set artifactory.resources.limits.memory="4Gi" \ | ||
--set artifactory.javaOpts.xms="1g" \ | ||
--set artifactory.javaOpts.xmx="4g" \ | ||
--set database.resources.requests.cpu="200m" \ | ||
--set database.resources.limits.cpu="1" \ | ||
--set database.resources.requests.memory="500Mi" \ | ||
--set database.resources.limits.memory="1Gi" \ | ||
--set nginx.resources.requests.cpu="100m" \ | ||
--set nginx.resources.limits.cpu="250m" \ | ||
--set nginx.resources.requests.memory="250Mi" \ | ||
|
@@ -66,7 +62,7 @@ Get more details on configuring Artifactory in the [official documentation](http | |
### Customizing Database password | ||
You can override the specified database password (set in [values.yaml](values.yaml)), by passing it as a parameter in the install command line | ||
```bash | ||
$ helm install --name artifactory --namespace artifactory --set database.env.pass=12_hX34qwerQ2 stable/artifactory | ||
$ helm install --name artifactory --namespace artifactory --set postgresql.postgresPassword=12_hX34qwerQ2 stable/artifactory | ||
``` | ||
|
||
You can customise other parameters in the same way, by passing them on `helm install` command line. | ||
|
@@ -80,7 +76,7 @@ This will completely delete your Artifactory Pro deployment. | |
|
||
|
||
### Custom Docker registry for your images | ||
If you need to pull your Docker images from a private registry, you need to create a | ||
If you need to pull your Docker images from a private registry, you need to create a | ||
[Kubernetes Docker registry secret](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/) and pass it to helm | ||
```bash | ||
# Create a Docker registry secret called 'regsecret' | ||
|
@@ -98,26 +94,6 @@ The following tables lists the configurable parameters of the artifactory chart | |
| Parameter | Description | Default | | ||
|---------------------------|-----------------------------------|----------------------------------------------------------| | ||
| `imagePullSecrets` | Docker registry pull secret | | | ||
| `database.name` | Database name | `postgresql` | | ||
| `database.replicaCount` | Database replica count | `1` | | ||
| `database.env.type` | Database type | `postgresql` | | ||
| `database.env.name` | Database name | `artifactory` | | ||
| `database.env.user` | Database username | `artifactory` | | ||
| `database.env.pass` | Database password | `Randomly generated` | | ||
| `database.image.repository` | Database container image | `docker.bintray.io/postgres` | | ||
| `database.image.version` | Database container image tag | `9.5.2` | | ||
| `database.image.pullPolicy` | Container pull policy | `IfNotPresent` | | ||
| `database.service.type` | Database service type | `ClusterIP` | | ||
| `database.externalPort` | Database service external port | `5432` | | ||
| `database.internalPort` | Database service internal port | `5432` | | ||
| `database.persistence.mountPath` | Database persistence volume mount path | `"/var/lib/postgresql/data"` | | ||
| `database.persistence.enabled` | Database persistence volume enabled | `true` | | ||
| `database.persistence.accessMode` | Database persistence volume access mode | `ReadWriteOnce` | | ||
| `database.persistence.size` | Database persistence volume size | `10Gi` | | ||
| `database.resources.requests.memory` | Database initial memory request | | | ||
| `database.resources.requests.cpu` | Database initial cpu request | | | ||
| `database.resources.limits.memory` | Database memory limit | | | ||
| `database.resources.limits.cpu` | Database cpu limit | | | ||
| `artifactory.name` | Artifactory name | `artifactory` | | ||
| `artifactory.replicaCount` | Replica count for Artifactory deployment| `1` | | ||
| `artifactory.image.pullPolicy` | Container pull policy | `IfNotPresent` | | ||
|
@@ -139,6 +115,7 @@ The following tables lists the configurable parameters of the artifactory chart | |
| `artifactory.javaOpts.xmx` | Artifactory java Xms size | | | ||
| `artifactory.javaOpts.other` | Artifactory additional java options | | | ||
| `nginx.name` | Nginx name | `nginx` | | ||
| `nginx.enabled` | Deploy nginx server | `false` | | ||
| `nginx.replicaCount` | Nginx replica count | `1` | | ||
| `nginx.image.repository` | Container image | `docker.bintray.io/jfrog/nginx-artifactory-pro` | | ||
| `nginx.image.version` | Container tag | `5.8.3` | | ||
|
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,6 @@ | ||
dependencies: | ||
- name: postgresql | ||
repository: https://kubernetes-charts.storage.googleapis.com/ | ||
version: 0.8.3 | ||
digest: sha256:b67c843d95aa0a2e7684abb787b22913e54baa92f45a450a3c3bcb7f3e068748 | ||
generated: 2018-01-03T16:38:11.350683+01:00 |
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,4 @@ | ||
dependencies: | ||
- name: postgresql | ||
version: 0.8.3 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can update to a later version |
||
repository: https://kubernetes-charts.storage.googleapis.com/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{{- if .Values.ingress.enabled -}} | ||
{{- $serviceName := include "artifactory.fullname" . -}} | ||
{{- $servicePort := .Values.artifactory.externalPort -}} | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: {{ template "artifactory.fullname" . }} | ||
labels: | ||
app: {{ template "artifactory.name" . }} | ||
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} | ||
release: {{ .Release.Name }} | ||
heritage: {{ .Release.Service }} | ||
annotations: | ||
{{- range $key, $value := .Values.ingress.annotations }} | ||
{{ $key }}: {{ $value | quote }} | ||
{{- end }} | ||
spec: | ||
rules: | ||
{{- range $host := .Values.ingress.hosts }} | ||
- host: {{ $host }} | ||
http: | ||
paths: | ||
- path: / | ||
backend: | ||
serviceName: {{ $serviceName }} | ||
servicePort: {{ $servicePort }} | ||
{{- end -}} | ||
{{- if .Values.ingress.tls }} | ||
tls: | ||
{{ toYaml .Values.ingress.tls | indent 4 }} | ||
{{- 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should start 6.3.0.