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

Added PR review app configuration #131

Merged
merged 3 commits into from
Apr 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions elenchos.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"dockerfiles": {
"grc.io/cdssnc/track-web": "."
},
"overlay": "manifests/overlays/elenchos"
}
28 changes: 28 additions & 0 deletions manifests/overlays/elenchos/app-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: track-web
name: track-web
spec:
selector:
matchLabels:
app: track-web
template:
metadata:
labels:
app: track-web
spec:
containers:
- image: gcr.io/cdssnc/track-web
imagePullPolicy: Always
name: track-web
env:
- name: TRACKER_MONGO_URI
value: mongodb://track-ro:0D^GEPgF52d&[email protected]:13692/trackweb
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
status: {}
14 changes: 14 additions & 0 deletions manifests/overlays/elenchos/app-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
labels:
name: track-web
name: track-web
spec:
type: NodePort
ports:
- port: 5000
targetPort: 5000
selector:
app: track-web

10 changes: 10 additions & 0 deletions manifests/overlays/elenchos/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
resources:
- app-deployment.yaml
- app-service.yaml
- traefik-ingress-controller-cluster-role-binding.yaml
- traefik-ingress-controller-cluster-role.yaml
- traefik-ingress-controller-deployment.yaml
- traefik-ingress-controller-service-account.yaml
- traefik-ingress.yaml
- traefik-ingress-service.yaml

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: traefik-ingress-controller
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: traefik-ingress-controller
subjects:
- kind: ServiceAccount
name: traefik-ingress-controller
namespace: kube-system
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: traefik-ingress-controller
namespace: kube-system
rules:
- apiGroups:
- ""
resources:
- services
- endpoints
- secrets
verbs:
- get
- list
- watch
- apiGroups:
- extensions
resources:
- ingresses
verbs:
- get
- list
- watch
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
k8s-app: traefik-ingress-lb
name: traefik-ingress-controller
namespace: kube-system
spec:
template:
metadata:
labels:
k8s-app: traefik-ingress-lb
spec:
containers:
- args:
- --api
- --kubernetes
- --debug
- --defaultentrypoints=http
- --entrypoints=Name:http Address::80
image: traefik:1.7
name: traefik-ingress-lb
ports:
- containerPort: 80
hostPort: 80
name: http
- containerPort: 8080
hostPort: 8080
name: admin
securityContext:
capabilities:
add:
- NET_BIND_SERVICE
drop:
- ALL
serviceAccountName: traefik-ingress-controller
terminationGracePeriodSeconds: 60
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: traefik-ingress-controller
namespace: kube-system
13 changes: 13 additions & 0 deletions manifests/overlays/elenchos/traefik-ingress-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: traefik-ingress-service
namespace: kube-system
spec:
ports:
- name: http
port: 80
protocol: TCP
selector:
k8s-app: traefik-ingress-lb
type: LoadBalancer
14 changes: 14 additions & 0 deletions manifests/overlays/elenchos/traefik-ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: traefik
name: traefik-ingress
spec:
rules:
- http:
paths:
- path: /
backend:
serviceName: track-web
servicePort: 5000