Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: The chart needs values.yaml option to add init containers and extra volumes #4

Open
zerthimon opened this issue Aug 5, 2021 · 0 comments

Comments

@zerthimon
Copy link

This is needed if the one wants to have a lemmatizer dictionaries and wordforms.

in configmap:

      common
      {
        lemmatizer_base = /usr/local/share/manticore/dicts
      }
      initContainers:
      - name: {{ .Chart.Name }}-words
        securityContext:
          runAsUser: 0
        image: "{{ .Values.words.image.registry }}/{{ .Values.words.image.repository }}:{{ .Values.words.image.tag }}"
        imagePullPolicy: IfNotPresent
        command: ['/bin/sh']
        args:
        - '-c'
        - |
          mkdir /words/words /words/dicts
          cp {{ .Values.words.path }}/* /words/words
          wget -O /words/dicts/ru.pak http://docs.manticoresearch.com/dict/ru.pak
          wget -O /words/dicts/en.pak http://docs.manticoresearch.com/dict/en.pak
        volumeMounts:
        - name: words
          mountPath: /words

for worker container:

          - name: words
            mountPath: /usr/local/share/manticore

for pod:

        - name: words
          emptyDir: {}

Check out Bitnami helm charts for how to add extra init containers and extra volumes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant