-
Notifications
You must be signed in to change notification settings - Fork 11
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
How to deploy Indy image to Kubernetes #82
Comments
Hello @tadayosi I have two proposals:
|
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 |
@tadayosi Sorry for late reply. For the configmap stuff, do you have any error logs for tracking? |
Hi,
After #80, now I want to deploy Indy to a K8s cluster so that it can be used as an alternative to Nexus Repo Manager. I've come up with my own primitive settings (see below) but I'd like to know your recommended settings with optionally more advanced features, such as externalised etc and data volumes.
Could you please add some documentation and/or examples on how to deploy Indy to K8s/OpenShift?
Thank you!
The text was updated successfully, but these errors were encountered: