GithubHelp home page GithubHelp logo

Comments (3)

ligangty avatar ligangty commented on June 29, 2024 1

Hello @tadayosi I have two proposals:

  1. Makes the indy configuration as configmap instead of a sidecar. You can create two configmaps for it: main.conf and logback.xml. I've merged a new pr with a merged main.conf in one file which can make it easily managed as configmap, please see new code.
  2. If you want to persist all artifacts for your environment, please create a pvc to store all them. You can mount this pvc at /opt/indy/var/lib/indy (this can be conigured through "storage.dir" under [storage-default] section in main.conf).

from commonjava-images.

tadayosi avatar tadayosi commented on June 29, 2024

Thanks @ligangty! Actually initially I tried the configmap approach (see my setup below) but somehow it didn't succeed to deploy. The contents of the configmaps were created from https://github.com/Commonjava/indy/releases/download/indy-parent-2.7.2/indy-launcher-2.7.2-etc.tar.gz.

For the item 2, thans for your suggestion.

apiVersion: apps/v1
kind: Deployment
metadata:
  name: indy
  namespace: indy
spec:
  selector:
    matchLabels:
      app: indy
  template:
    metadata:
      labels:
        app: indy
    spec:
      containers:
        - name: indy
          image: quay.io/factory2/indy:2.7.2
          ports:
            - name: 8080-tcp
              containerPort: 8080
            - name: 8081-tcp
              containerPort: 8081
          livenessProbe:
            httpGet:
              path: /api/stats/version-info
              port: 8080
            initialDelaySeconds: 30
            periodSeconds: 3
          readinessProbe:
            httpGet:
              path: /api/stats/version-info
              port: 8080
            initialDelaySeconds: 30
            periodSeconds: 3
          volumeMounts:
            - name: indy-etc
              mountPath: /opt/indy/etc/indy/main.conf
              subPath: main.conf
            - name: indy-etc-confd
              mountPath: /opt/indy/etc/indy/conf.d
            - name: indy-etc-keycloak
              mountPath: /opt/indy/etc/indy/keycloak
            - name: indy-etc-logging
              mountPath: /opt/indy/etc/indy/logging
      volumes:
        - name: indy-etc
          configMap:
            name: indy-etc
        - name: indy-etc-confd
          configMap:
            name: indy-etc-confd
        - name: indy-etc-keycloak
          configMap:
            name: indy-etc-keycloak
        - name: indy-etc-logging
          configMap:
            name: indy-etc-logging

from commonjava-images.

ligangty avatar ligangty commented on June 29, 2024

@tadayosi Sorry for late reply. For the configmap stuff, do you have any error logs for tracking?

from commonjava-images.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.