Skip to content

Commit cc44b9d

Browse files
committed
Update the examples based on the suggestions provided. Use an external database whenever possible, and ensure all information is passed securely using secrets.
1 parent 7cc7946 commit cc44b9d

File tree

6 files changed

+55
-28
lines changed

6 files changed

+55
-28
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<config version="2">
2+
<chain>
3+
<provider id="cache-fs" type="cache-fs">
4+
<provider id="s3-storage-v3" type="s3-storage-v3"/>
5+
</provider>
6+
</chain>
7+
<provider id="s3-storage-v3" type="s3-storage-v3">
8+
<endpoint>s3.amazonaws.com</endpoint>
9+
<bucketName>bucketName</bucketName>
10+
<path>pathPrefix</path>
11+
<region>s3Region</region>
12+
<identity>yourIdentity</identity>
13+
<credential>yourCredentials</credential>
14+
<usePresigning>true</usePresigning>
15+
<signatureExpirySeconds>600</signatureExpirySeconds>
16+
<maxConnections>50</maxConnections>
17+
<connectionTimeout>10000</connectionTimeout>
18+
</provider>
19+
<provider type="cache-fs" id="cache-fs">
20+
<maxCacheSize>5000000000</maxCacheSize>
21+
</provider>
22+
</config>

examples/jfrog-platform/HA-with-distirbution-S3/readme.md renamed to examples/jfrog-platform/HA-with-distribution-S3/readme.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 3-Node Artifactory Cluster with Distribution and direct-S3 Persistence
1+
## 3-Node Artifactory Cluster with Distribution and direct-S3 Provider
22

33
### Overall
44
| Product | Enabled |
@@ -19,11 +19,11 @@
1919
| Persistence | Default Storage Class + S3 |
2020
| SSL ||
2121
| Ingress ||
22-
| Nginx Deployment | |
22+
| Nginx Deployment | |
2323
| UnifiedSecret ||
24-
| Default Admin Credential | |
24+
| Non-Default Admin Credential | |
2525
| Default Master Key ||
26-
| Restriected Resources | |
26+
| Sizing Parameters | artifactory-xlarge |
2727
| Private Registry ||
2828

2929

@@ -32,12 +32,12 @@
3232
| Detail | Value |
3333
|-------------|-------------|
3434
| Replica | 2 |
35-
| Database | Bundled Postgres |
35+
| Database | External Postgres |
3636
| Persistence | Default Storage Class |
3737
| External redis ||
3838
| SSL ||
3939
| UnifiedSecret ||
40-
| Restriected Resources | |
40+
| Sizing Parameters | distribution-xlarge |
4141
| Private Registry ||
4242

4343

@@ -77,23 +77,29 @@ Note: This requires distribution chart 102.23.0+ to work, which comes default wi
7777
4. Fill in database details ( values-artifactory.yaml ). [See here for more details related to database.](https://jfrog.com/help/r/jfrog-installation-setup-documentation/database-configuration)
7878

7979
$ kubectl create secret generic my-database --from-literal=db-url='database_url' --from-literal=db-user='admin_user' --from-literal=db-password='password' -n <namespace>
80+
$ kubectl create secret generic my-distribution-database --from-literal=db-url='database_url' --from-literal=db-user='admin_user' --from-literal=db-password='password' -n <namespace>
8081

81-
5. Fill in awsS3V3 connection details. To use IAM roles, check [here](https://jfrog.com/help/r/artifactory-how-to-configure-an-aws-s3-object-store-using-an-iam-role-instead-of-an-iam-user/artifactory-how-to-configure-an-aws-s3-object-store-using-an-iam-role-instead-of-an-iam-user)
82+
5. Create the binarystore.xml secrect or pull the values from environment variables.
83+
84+
$ kubectl create secret generic my-binarystore --from-file=binarystore.xml
85+
86+
To use IAM roles, check [here](https://jfrog.com/help/r/artifactory-how-to-configure-an-aws-s3-object-store-using-an-iam-role-instead-of-an-iam-user/artifactory-how-to-configure-an-aws-s3-object-store-using-an-iam-role-instead-of-an-iam-user)
8287

8388
6. Pull charts ( if you need to reference the suggested sizing paramerters ) and install
8489

8590

8691
```
92+
$ helm repo update
8793
$ helm pull jfrog/jfrog-platform --untar
8894
```
8995

9096

9197
```
92-
$ helm install <name> jfrog/jfrog-platform -n <namespace> -f values-main.yaml -f values-artifactory.yaml -f jfrog-platform/charts/artifactory/sizing/artifactory-xlarge.yaml -f jfrog-platform/charts/distribution/sizing/distribution-xlarge.yaml
98+
$ helm install <name> jfrog/jfrog-platform -n <namespace> -f values-main.yaml -f values-artifactory.yaml -f values-distribution.yaml -f jfrog-platform/charts/artifactory/sizing/artifactory-xlarge.yaml -f jfrog-platform/charts/distribution/sizing/distribution-xlarge.yaml
9399
```
94100

95101
7. If you are installing on openshift, add values-openshift.yaml
96102

97103
```
98-
$ helm install <name> jfrog/jfrog-platform -n <namespace> -f values-main.yaml -f values-artifactory.yaml -f values-openshift.yaml -f jfrog-platform/charts/artifactory/sizing/artifactory-xlarge.yaml -f jfrog-platform/charts/distribution/sizing/distribution-xlarge.yaml
104+
$ helm install <name> jfrog/jfrog-platform -n <namespace> -f values-main.yaml -f values-artifactory.yaml -f values-distribution.yaml -f values-openshift.yaml -f jfrog-platform/charts/artifactory/sizing/artifactory-xlarge.yaml -f jfrog-platform/charts/distribution/sizing/distribution-xlarge.yaml
99105
```

examples/jfrog-platform/HA-with-distirbution-S3/values-artifactory.yaml renamed to examples/jfrog-platform/HA-with-distribution-S3/values-artifactory.yaml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ artifactory:
77
artifactory:
88
name: artifactory
99
admin:
10-
username: "admin"
11-
password:
1210
secret: my-admin
1311
dataKey: bootstrap.creds
1412

@@ -23,18 +21,8 @@ artifactory:
2321
persistence:
2422
enabled: true
2523
accessMode: ReadWriteOnce
26-
size: 200Gi
27-
type: s3-storage-v3-direct
28-
awsS3V3:
29-
testConnection: false
30-
identity: # required
31-
credential: # required
32-
region: # required
33-
bucketName: artifactory-aws
34-
path: artifactory/filestore
35-
endpoint: # optional
36-
port: # optional
37-
maxConnections: 150 # optional
24+
size: 100Gi
25+
customBinarystoreXmlSecret: my-binarystore
3826

3927
access:
4028
enabled: true
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
distribution:
2+
postgresql:
3+
enabled: false
4+
database:
5+
type: "postgresql"
6+
driver: org.postgresql.Driver
7+
secrets:
8+
user:
9+
name: "my-distribution-database"
10+
key: "db-user"
11+
password:
12+
name: "my-distribution-database"
13+
key: "db-password"
14+
url:
15+
name: "my-distribution-database"
16+
key: "db-url"

examples/jfrog-platform/HA-with-distirbution-S3/values-main.yaml renamed to examples/jfrog-platform/HA-with-distribution-S3/values-main.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,9 @@ distribution:
3333
unifiedUpgradeAllowed: true
3434
distribution:
3535
unifiedSecretInstallation: false
36-
postgresql:
37-
enabled: true
3836

3937
insight:
4038
enabled: false
4139

4240
pipelines:
43-
enabled: false
44-
45-
pdnServer:
4641
enabled: false

0 commit comments

Comments
 (0)