automated opensearch permissions
This commit is contained in:
@@ -64,6 +64,13 @@ spec:
|
|||||||
# fsGroup: 1000 # GID
|
# fsGroup: 1000 # GID
|
||||||
# nodeSelector:
|
# nodeSelector:
|
||||||
# node: worker1
|
# node: worker1
|
||||||
|
initContainers:
|
||||||
|
- name: volume-permissions
|
||||||
|
image: busybox
|
||||||
|
command: ["sh", "-c", "chown -R 1000:1000 /usr/share/opensearch/data"]
|
||||||
|
volumeMounts:
|
||||||
|
- name: opensearch-claim0
|
||||||
|
mountPath: /usr/share/opensearch/data
|
||||||
containers:
|
containers:
|
||||||
- env:
|
- env:
|
||||||
- name: OPENSEARCH_JAVA_OPTS
|
- name: OPENSEARCH_JAVA_OPTS
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ func deployApp(cli *dockerclient.Client, image string, identifier string, env []
|
|||||||
appName := strings.Join(appDetailsSplit[:len(appDetailsSplit)-1], "_")
|
appName := strings.Join(appDetailsSplit[:len(appDetailsSplit)-1], "_")
|
||||||
appVersion := appDetailsSplit[len(appDetailsSplit)-1]
|
appVersion := appDetailsSplit[len(appDetailsSplit)-1]
|
||||||
|
|
||||||
log.Printf("APP VERSION IS: %s", appVersion)
|
// log.Printf("APP VERSION IS: %s", appVersion)
|
||||||
|
|
||||||
for _, app := range workflowExecution.Workflow.Actions {
|
for _, app := range workflowExecution.Workflow.Actions {
|
||||||
// log.Printf("[DEBUG] App: %s, Version: %s", appName, appVersion)
|
// log.Printf("[DEBUG] App: %s, Version: %s", appName, appVersion)
|
||||||
@@ -294,9 +294,10 @@ func deployApp(cli *dockerclient.Client, image string, identifier string, env []
|
|||||||
RestartPolicy: "Never",
|
RestartPolicy: "Never",
|
||||||
Containers: []corev1.Container{
|
Containers: []corev1.Container{
|
||||||
{
|
{
|
||||||
Name: value,
|
Name: value,
|
||||||
Image: image,
|
Image: image,
|
||||||
Env: buildEnvVars(envMap),
|
Env: buildEnvVars(envMap),
|
||||||
|
// ImagePullPolicy: corev1.PullAlways,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user