Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
Merge pull request #61 from github/scaffolds-moda-moda-templates-42c9…
Browse files Browse the repository at this point in the history
…41773171818c0a858549f45d8bcc

Moda Component setup
  • Loading branch information
JessRudder committed Dec 18, 2019
2 parents 8f24422 + 541375a commit c77f477
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM ruby:2.6.3
24 changes: 24 additions & 0 deletions config/kubernetes/default/deployments/classroom.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: classroom
spec:
replicas: 2
selector:
matchLabels:
app: classroom
template:
metadata:
labels:
app: classroom
spec:
containers:
- name: classroom
image: classroom
ports:
- name: http
containerPort: 8080
protocol: TCP
envFrom:
- configMapRef:
name: kube-cluster-metadata
17 changes: 17 additions & 0 deletions config/kubernetes/default/services/classroom.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: classroom
labels:
service: classroom
annotations:
moda.github.net/domain-name: "classroom-%environment%.service.cp1-iad.github.net"
spec:
ports:
- name: http
port: 8080
protocol: TCP
targetPort: http
selector:
app: classroom
type: LoadBalancer
5 changes: 5 additions & 0 deletions config/moda/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
environments:
- name: production
cluster_selector:
profile: general
region: iad

0 comments on commit c77f477

Please sign in to comment.