Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
apiVersion: v1
kind: ConfigMap
supervisord.conf: |
# Run as a foreground process to keep the container running
serverurl = unix:///var/run/supervisor/supervisor.sock
prompt = supervisorctl
file = /var/run/supervisor/supervisor.sock
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
command=/usr/bin/router -c /etc/jabberd/router.xml
command=/usr/bin/sm -c /etc/jabberd/sm.xml
command=/usr/bin/c2s -c /etc/jabberd/c2s.xml
command=/usr/bin/s2s -c /etc/jabberd/s2s.xml
command=/usr/libexec/tomcat/server start
command=/bin/bash -c 'ln -s /httpd-conf/httpd.conf /etc/httpd/conf/httpd.conf'
command=/bin/bash -c 'ln -s /httpd-magic/magic /etc/httpd/conf/magic'
command=/usr/sbin/httpd -D FOREGROUND
command=/usr/sbin/osa-dispatcher start
command=/usr/sbin/taskomatic start
# Not sure if this is affecting anything yet or not
# [program:cobblerd]
# command=/usr/sbin/cobblerd --no-daemonize
# command=/usr/bin/python -s /bin/cobblerd --no-daemonize
# This might be stupid but it seems to work
# The very first time you deploy this Spacewalk via Kubernetes, deploy it with this service
# After that is done, spacewalk should be up and working,
# At which point you can comment this out in your deployment
# You'll want to take the CSR and sign it with your CA
# Then convert those into configmaps/secrets for use with your deployment
# I spent many days trying to get this to work with the self-signed ones and just couldn't get it
# After your first deployment and you have Spacewalk working, you'll want to modify your deployment to use this command instead
# Which will retain the certificates
# sleep 10 && spacewalk-setup --skip-fqdn-test --skip-db-install --skip-db-population --skip-services-restart --answer-file=/spacewalk-init/answerfile.txt && supervisorctl restart httpd && supervisorctl restart tomcat
# spacewalk-setup --skip-ssl-ca-generation --skip-ssl-cert-generation --skip-fqdn-test --skip-db-install --skip-db-population --skip-services-restart --answer-file=/spacewalk-init/answerfile.txt && supervisorctl restart httpd && supervisorctl restart tomcat
command=/bin/bash -c 'sleep 10 && spacewalk-setup --skip-fqdn-test --skip-db-install --skip-db-population --skip-services-restart --answer-file=/spacewalk-init/answerfile.txt && supervisorctl restart httpd && supervisorctl restart tomcat'
name: spacewalk-supervisord-conf