Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
kubernetes-integration-test/pod.yaml
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
88 lines (88 sloc)
1.97 KB
This file contains 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: v1 | |
| kind: Pod | |
| metadata: | |
| labels: | |
| app: app-users | |
| spec: | |
| containers: | |
| #Java agent, test executor | |
| - name: jnlp | |
| image: registry.access.redhat.com/openshift3/jenkins-slave-maven-rhel7:v3.9 | |
| command: | |
| - /bin/sh | |
| args: | |
| - -c | |
| #Note the args and syntax for run-jnlp-client: | |
| - umask 0000; /usr/local/bin/run-jnlp-client $(JENKINS_SECRET) $(JENKINS_NAME) | |
| resources: | |
| limits: | |
| memory: 512Mi | |
| workingDir: /home/jenkins | |
| env: | |
| - name: JNLP_MAX_HEAP_UPPER_BOUND_MB | |
| value: 64 | |
| #App under test | |
| - name: app-users | |
| image: 172.30.1.1:5000/myproject/app-users:latest | |
| resources: | |
| limits: | |
| memory: 512Mi | |
| env: | |
| - name: SPRING_PROFILES_ACTIVE | |
| value: k8sit | |
| - name: SPRING_CLOUD_KUBERNETES_ENABLED | |
| value: false | |
| readinessProbe: | |
| httpGet: | |
| path: /health | |
| port: 8080 | |
| initialDelaySeconds: 5 | |
| #DB | |
| - name: mariadb | |
| image: registry.access.redhat.com/rhscl/mariadb-102-rhel7:1 | |
| resources: | |
| limits: | |
| memory: 256Mi | |
| env: | |
| - name: MYSQL_USER | |
| value: myuser | |
| - name: MYSQL_PASSWORD | |
| value: mypassword | |
| - name: MYSQL_DATABASE | |
| value: testdb | |
| - name: MYSQL_ROOT_PASSWORD | |
| value: secret | |
| readinessProbe: | |
| tcpSocket: | |
| port: 3306 | |
| initialDelaySeconds: 5 | |
| #AMQ | |
| - name: amq | |
| image: registry.access.redhat.com/jboss-amq-6/amq63-openshift:1.3 | |
| resources: | |
| limits: | |
| memory: 256Mi | |
| env: | |
| - name: AMQ_USER | |
| value: test | |
| - name: AMQ_PASSWORD | |
| value: secret | |
| readinessProbe: | |
| tcpSocket: | |
| port: 61616 | |
| initialDelaySeconds: 5 | |
| #External API Third party (provided by mockserver) | |
| - name: mockserver | |
| image: jamesdbloom/mockserver:mockserver-5.3.0 | |
| resources: | |
| limits: | |
| memory: 256Mi | |
| env: | |
| - name: LOG_LEVEL | |
| value: INFO | |
| - name: JVM_OPTIONS | |
| value: -Xmx128m | |
| readinessProbe: | |
| tcpSocket: | |
| port: 1080 | |
| initialDelaySeconds: 5 |