-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
whs
committed
Jan 12, 2019
0 parents
commit 754b3cb
Showing
7 changed files
with
103 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
machine: true | ||
steps: | ||
- checkout | ||
- run: docker build -t whshk/nifi-frontend . | ||
- run: docker login -u $DOCKER_USER -p $DOCKER_PASS | ||
- run: docker push whshk/nifi-frontend | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
nifi.yaml | ||
nifi-service.yaml | ||
|
||
frontend.yaml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM gcr.io/google-samples/hello-frontend:1.0 | ||
|
||
COPY frontend.conf /etc/nginx/conf.d/frontend.conf |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
upstream nifi { | ||
server nifi; | ||
} | ||
|
||
server { | ||
listen 8080; | ||
|
||
location / { | ||
proxy_pass http://nifi:8080; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: nifi-frontend | ||
spec: | ||
selector: | ||
app: nifi | ||
tier: frontend | ||
ports: | ||
- protocol: "TCP" | ||
port: 8080 | ||
targetPort: 8080 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: nifi-frontend | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: nifi | ||
tier: frontend | ||
track: stable | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: nifi | ||
tier: frontend | ||
track: stable | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: "whshk/nifi-frontend:latest" | ||
lifecycle: | ||
preStop: | ||
exec: | ||
command: ["/usr/sbin/nginx","-s","quit"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: nifi | ||
spec: | ||
selector: | ||
app: nifi | ||
tier: backend | ||
ports: | ||
- protocol: TCP | ||
port: 8080 | ||
targetPort: http |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: nifi | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: nifi | ||
tier: backend | ||
track: stable | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: nifi | ||
tier: backend | ||
track: stable | ||
spec: | ||
containers: | ||
- name: nifi | ||
image: apache/nifi:latest | ||
ports: | ||
- name: http | ||
containerPort: 8080 | ||
|