Versions :
opensearch 2.4.1
repository-gcs 2.4.1
Describe the issue:
Hello i’m trying to install the repository gcs plugin on GKE but it doesn’t work
The pod are running and opensearch cluster is green and working fine but the plugin is not install
Configuration:
this is what i have in my init container for the plugin installation
- name: install-plugin
image: "opensearch_image"
imagePullPolicy: "IfNotPresent"
command:
- /bin/sh
- "-c"
- |
bin/opensearch-plugin install --batch "local_https_link_to download_the_plugin"
Relevant Logs or Screenshots:
kube logs install-plugin container
→ Installing […]://storage.googleapis.com/[…]
→ Downloading […]://storage.googleapis.com/[…]
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: plugin requires additional permissions @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- java.lang.RuntimePermission accessDeclaredMembers
- java.lang.RuntimePermission setFactory
- java.lang.reflect.ReflectPermission suppressAccessChecks
- java.net.NetPermission setDefaultAuthenticator
- java.net.SocketPermission * connect,resolve
See […]://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html
for descriptions of what these permissions allow and the associated risks.
→ Installed repository-gcs with folder name repository-gcs
Then maybe the init container needs a share volume between the init container and conainer for the init container to install the plugin and the main container to read/write/execute it so i add a share volume
Configuration:
- name: install-plugin
image: "opensearch_image"
imagePullPolicy: "IfNotPresent"
command:
- /bin/sh
- "-c"
- |
bin/opensearch-plugin install --batch "local_https_link_to download_the_plugin"
volumeMounts:
- name: plugin
mountPath: /usr/share/opensearch/plugin
Later in the container
i have a volumeMounts and volume emptydir with the same name plugin
and when i deploy :
-
in the kube logs install-plugin container the installation is ok same log as above
-
and my volume /usr/share/opensearch/plugin is mounted but it’s empty
the defaut path where all plugin are install is /usr/share/opensearch/plugins
But i can touch it because in my deployment i mount the volume /usr/share/opensearch/data that contain /usr/share/opensearch/plugins with a pvc
i try in my init container to create the volume in the default path but the deployement failed with error
volumeMounts:
- name: plugin
mountPath: /usr/share/opensearch/plugin
Thanks for your help