Comments (3)
Hello @tadayosi I have two proposals:
- 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.
- 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.
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.
@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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from commonjava-images.