Skip to content
This repository has been archived by the owner on Apr 20, 2022. It is now read-only.

Commit

Permalink
Added sc-kubernetes, changed props
Browse files Browse the repository at this point in the history
  • Loading branch information
marcingrzejszczak committed Sep 8, 2017
1 parent 210063d commit 4e6c413
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 22 deletions.
4 changes: 2 additions & 2 deletions deployment.yml
Expand Up @@ -15,10 +15,10 @@ spec:
- name: {{containerName}}
image: {{dockerOrg}}/github-webhook:{{version}}
ports:
- containerPort: 80
- containerPort: 8080
env:
- name: PORT
value: "80"
value: "8080"
- name: SYSTEM_PROPS # additional options to be passed to the running process
value: "{{systemProps}}"
# livenessProbe:
Expand Down
10 changes: 1 addition & 9 deletions pipeline.yml
Expand Up @@ -26,12 +26,4 @@ stage:
name: mysql-github
- type: eureka
name: github-eureka
coordinates: scpipelines/github-eureka:latest
prod:
services:
- type: rabbitmq
name: github-rabbitmq
- type: mysql
name: mysql-github
- type: eureka
name: github-eureka
coordinates: scpipelines/github-eureka:latest
5 changes: 5 additions & 0 deletions pom.xml
Expand Up @@ -46,6 +46,11 @@
<groupId>com.toomuchcoding.jsonassert</groupId>
<artifactId>jsonassert</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-kubernetes-netflix</artifactId>
<version>0.2.0.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-stream-rabbit</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion service.yml
Expand Up @@ -7,7 +7,7 @@ metadata:
visualize: "true"
spec:
ports:
- port: 80
- port: 8080
selector:
name: {{appName}}
type: NodePort
10 changes: 0 additions & 10 deletions src/main/resources/application-cloud.yaml

This file was deleted.

9 changes: 9 additions & 0 deletions src/main/resources/application-kubernetes.yaml
@@ -0,0 +1,9 @@
spring.rabbitmq.addresses: github-rabbitmq

eureka:
client:
serviceUrl:
defaultZone: http://github-eureka:8761/eureka/
instance:
hostname: github-webhook
nonSecurePort: 80

0 comments on commit 4e6c413

Please sign in to comment.