-
Notifications
You must be signed in to change notification settings - Fork 13
[WIP] Add an Openshift template #44
base: docker
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! It would be good to have an accompanying README for deploying this. There are several prereq's: priv scc, perms to create volumes and associated quota. Once we get this in it would be ideal to use OpenShift's mongo image. The init prepare pod is a bit of a kubernetes antipattern but too much to deal with in this PR.
pulp-openshift-template.yaml
Outdated
command: ["bash", "-c", "/setup.sh"] | ||
env: | ||
- name: QPID | ||
value: qpid.${NAMESPACE}.svc.cluster.local |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should be able to use value: qpid
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird, that didn't work for me, but maybe SDN was not installed on a test cluster
pulp-openshift-template.yaml
Outdated
- name: QPID | ||
value: qpid.${NAMESPACE}.svc.cluster.local | ||
- name: DB | ||
value: db.${NAMESPACE}.svc.cluster.local |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
value: db
I tested this a little bit more and still some modifications are required:
|
Interesting work! What do you think about this related alternative? https://github.com/mhrivnak/pulp-k8s I started from scratch there. I abandoned the idea of "shared config == shared volume", which I used the first time around since I didn't have an orchestration layer. This time I used the Secrets and ConfigMap features of k8s to inject configs and certificates. |
Looks great! I'm thinking to abandon this PR in favor of My initial goal was to run Pulp for OSBS development, so feel free to close this PR if its not sufficiently advanced for actual production or development use |
Definitely the preferred method. |
This PR also includes several modifications to make it runnable on Openshift