forked from jfrog/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new examples for adding artifactory plugins using secrets
- Loading branch information
1 parent
c64db4f
commit 872e641
Showing
1 changed file
with
36 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
# Adding plugins as a secret | ||
|
||
You can deploy the user plugins as a Kubernetes Secret. You will need to download the plugins and create a secret out of it. | ||
|
||
1. Download the required plugins | ||
```bash | ||
wget https://raw.githubusercontent.com/jfrog/artifactory-user-plugins/master/cleanup/artifactCleanup/artifactCleanup.json | ||
wget https://raw.githubusercontent.com/jfrog/artifactory-user-plugins/master/cleanup/artifactCleanup/artifactCleanup.groovy | ||
``` | ||
**Note:** Refer plugins repository -> https://github.com/jfrog/artifactory-user-plugins/ | ||
|
||
2. Create the Kubernetes secret. | ||
|
||
```bash | ||
kubectl create secret generic cleanup --from-file=artifactCleanup.groovy --from-file=artifactCleanup.json | ||
``` | ||
|
||
3. Create a plugin-values.yaml | ||
``` | ||
artifactory: | ||
## List of secrets for Artifactory user plugins. | ||
## One Secret per plugin's files. | ||
userPluginSecrets: | ||
- cleanup | ||
copyOnEveryStartup: | ||
- source: /artifactory_bootstrap/plugins/* | ||
target: etc/artifactory/plugins/ | ||
``` | ||
|
||
**Note:** `copyOnEveryStartup` is used to copy and overwrite the files from (`/artifactory_bootstrap/plugins folder` ) to `/opt/jfrog/artifactory/var/etc/artifactory/plugins` everytime the pod is restarted. | ||
|
||
4. Install with the plugin-values.yaml. | ||
``` | ||
helm upgrade --install artifactory --namespace artifactory jfrog/artifactory -f plugin-values.yaml | ||
``` |