Skip to content

Instantly share code, notes, and snippets.

@rafaeltuelho
Created August 8, 2024 18:05
Show Gist options
  • Save rafaeltuelho/7546d56fcff705325b47fd601e326526 to your computer and use it in GitHub Desktop.
Save rafaeltuelho/7546d56fcff705325b47fd601e326526 to your computer and use it in GitHub Desktop.
JFrog Artifactory Chart values to deploy on Openshift 4.x
# Default values for artifactory-oss.
# This is a YAML-formatted file.
# Beware when changing values here. You should know what you are doing!
# Access the values with {{ .Values.key.subkey }}
# This chart is based on the main artifactory chart with some customizations.
# See all supported configuration keys in https://github.com/jfrog/charts/tree/master/stable/artifactory
containerSecurityContext:
enabled: false
# enabled: true
# runAsNonRoot: true
# privileged: false
# allowPrivilegeEscalation: false
# seccompProfile:
# type: RuntimeDefault
# capabilities:
# drop:
# - ALL
## All values are under the 'artifactory' sub chart.
artifactory:
## Artifactory
## See full list of supported Artifactory options and documentation in artifactory chart: https://github.com/jfrog/charts/tree/master/stable/artifactory
artifactory:
name: artifactory-oss
podSecurityContext:
enabled: false
# enabled: true
# runAsNonRoot: true
# runAsUser: 1030
# runAsGroup: 1030
# fsGroup: 1030
# fsGroupChangePolicy: "Always"
# seLinuxOptions: {}
## Default tag is from the artifactory sub-chart in the requirements.yaml
image:
registry: releases-docker.jfrog.io
repository: jfrog/artifactory-oss
# tag:
## Uncomment the following resources definitions or pass them from command line
## to control the cpu and memory resources allocated by the Kubernetes cluster
resources: {}
# requests:
# memory: "1Gi"
# cpu: "500m"
# limits:
# memory: "4Gi"
# cpu: "1"
## The following Java options are passed to the java process running Artifactory.
## You should set them according to the resources set above.
## IMPORTANT: Make sure resources.limits.memory is at least 1G more than Xmx.
javaOpts: {}
# xms: "1g"
# xmx: "3g"
# other: ""
installer:
platform: art-oss-helm
installerInfo: '{"productId":"Helm_artifactory-oss/{{ .Chart.Version }}","features":[{"featureId":"Platform/{{ printf "%s-%s" "kubernetes" .Capabilities.KubeVersion.Version }}"},{"featureId":"Database/{{ .Values.database.type }}"},{"featureId":"PostgreSQL_Enabled/{{ .Values.postgresql.enabled }}"},{"featureId":"Nginx_Enabled/{{ .Values.nginx.enabled }}"},{"featureId":"ArtifactoryPersistence_Type/{{ .Values.artifactory.persistence.type }}"},{"featureId":"SplitServicesToContainers_Enabled/{{ .Values.splitServicesToContainers }}"},{"featureId":"UnifiedSecretInstallation_Enabled/{{ .Values.artifactory.unifiedSecretInstallation }}"},{"featureId":"Filebeat_Enabled/{{ .Values.filebeat.enabled }}"},{"featureId":"ReplicaCount/{{ .Values.artifactory.replicaCount }}"}]}'
## Nginx
## See full list of supported Nginx options and documentation in artifactory chart: https://github.com/jfrog/charts/tree/master/stable/artifactory
nginx:
enabled: false
podSecurityContext:
enabled: false
# runAsUser: 104
# runAsGroup: 107
# fsGroup: 107
containerSecurityContext:
enabled: false
# runAsNonRoot: true
# privileged: false
# readOnlyRootFilesystem: false
# allowPrivilegeEscalation: false
# capabilities:
# drop: ["ALL"]
# seccompProfile:
# type: "RuntimeDefault"
tlsSecretName: ""
service:
type: LoadBalancer
## Ingress
## See full list of supported Ingress options and documentation in artifactory chart: https://github.com/jfrog/charts/tree/master/stable/artifactory
ingress:
enabled: false
tls:
## PostgreSQL
## See list of supported postgresql options and documentation in artifactory chart: https://github.com/jfrog/charts/tree/master/stable/artifactory
## Configuration values for the PostgreSQL dependency sub-chart
## ref: https://github.com/bitnami/charts/blob/master/bitnami/postgresql/README.md
postgresql:
enabled: true
## This key is required for upgrades to protect old PostgreSQL chart's breaking changes.
databaseUpgradeReady: "yes"
## If NOT using the PostgreSQL in this chart (artifactory.postgresql.enabled=false),
## specify custom database details here or leave empty and Artifactory will use embedded derby.
## See full list of database options and documentation in artifactory chart: https://github.com/jfrog/charts/tree/master/stable/artifactory
# database:
jfconnect:
enabled: false
federation:
enabled: false
## Enable the PostgreSQL sub chart
postgresql:
enabled: true
securityContext:
enabled: false
containerSecurityContext:
enabled: false
# runAsUser: ''
# runAsGroups: ''
# fsGroup: ''
@rafaeltuelho
Copy link
Author

rafaeltuelho commented Aug 8, 2024

steps to deploy on a Openshift cluster.

helm repo add jfrog https://charts.jfrog.io/
helm repo update

helm install -name artifactory-oss jfrog/artifactory-oss --namespace artifactory --create-namespace -f jfrog-artifactory-oss-values.yaml

oc create route edge artifactory --service artifactory-oss --port 8082

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment