Now that we have all the properties in place, we are ready to deploy
Here are all the env variables we will be passing to chart:
$ env POSTGRES_USERNAME=artifactory POSTGRES_PASSWORD=password
Here is the final values.yaml file:
global: joinKeySecretName: joinkey-secret masterKeySecretName: masterkey-secret artifactory: persistence: type: aws-s3-v3 awsS3V3: identity: yourIdentity credential: yourIdentity region: usw2 bucketName: artifactory-aws path: artifactory/filestore Endpoint: AWS_S3_ENDPOINT primary: resources: requests: memory: "4Gi" cpu: "2" limits: memory: "8Gi" cpu: "6" javaOpts: xms: "4g" xmx: "6g" node: replicaCount: 2 resources: requests: memory: "4Gi" cpu: "2" limits: memory: "8Gi" cpu: "6" javaOpts: xms: "4g" xmx: "6g" postgresql: enabled: true postgresqlUsername: artifactory postgresqlPassword: password postgresqlDatabase: artifactory postgresqlExtendedConf: maxConnections: 1000 nginx: enabled: true tlsSecretName: artifactory-tls replicaCount: 2 resources: requests: cpu: 100m memory: 250Mi limits: cpu: 250m memory: 500Mi
Let’s Go:
$ helm install artifactory-ha \ --set artifactory.license.secret=artifactory-cluster-license \ --set artifactory.license.dataKey=art.lic \ --set postgresql.postgresqlPassword=${POSTGRES_PASSWORD} \ --set postgresql.postgresqlUsername=${POSTGRES_USERNAME} \ -f values.yaml \ --namespace artifactory-ha jfrog/artifactory-ha --version 107.21.12