Created
July 25, 2018 13:19
-
-
Save kadel/e9fc6e47f2a05accf0306b4cb69e70c2 to your computer and use it in GitHub Desktop.
Supervisor with S2I image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps.openshift.io/v1 | |
| kind: DeploymentConfig | |
| metadata: | |
| name: pod-with-supervisord | |
| labels: | |
| app: myapp | |
| spec: | |
| replicas: 1 | |
| template: | |
| metadata: | |
| labels: | |
| deploymentconfig: pod-with-supervisord | |
| spec: | |
| volumes: | |
| - name: shared-data | |
| emptyDir: {} | |
| initContainers: | |
| - image: quay.io/tomkral/supervisord-test:latest | |
| name: copy-supervisor | |
| command: | |
| - "/usr/bin/cp" | |
| args: | |
| - "-r" | |
| - "/opt/supervisord" | |
| - /var/lib/ | |
| volumeMounts: | |
| - name: shared-data | |
| mountPath: /var/lib/supervisord | |
| containers: | |
| - image: "docker-registry.default.svc:5000/openshift/wildfly:latest" | |
| name: app | |
| volumeMounts: | |
| - name: shared-data | |
| mountPath: /var/lib/supervisord | |
| command: | |
| - "/var/lib/supervisord/bin/supervisord" | |
| args: | |
| - "-c" | |
| - "/var/lib/supervisord/conf/supervisor.conf" | |
| triggers: | |
| - type: ConfigChange | |
| - type: ImageChange | |
| imageChangeParams: | |
| automatic: false | |
| containerNames: | |
| - app | |
| from: | |
| kind: ImageStreamTag | |
| name: wildfly:latest | |
| namespace: openshift |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment