Skip to content

Commit

Permalink
Dois deployments/services de tradutor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ederson Torresini committed Dec 12, 2017
1 parent 26fa4f5 commit 7baa3d4
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 2 deletions.
45 changes: 44 additions & 1 deletion srv/ensino/ARC60808/tradutor/Deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: arc60808-tradutor
name: arc60808-tradutor-julinho
labels:
course: arc60808
app: tradutor
bot: julinho
spec:
replicas: 1
template:
metadata:
labels:
course: arc60808
app: tradutor
bot: julinho
spec:
containers:
- name: arc60808-tradutor-julinho
Expand Down Expand Up @@ -45,6 +47,47 @@ spec:
value: "18080"
- name: CLIENT_ID
value: "1"
resources:
requests:
cpu: 100m
memory: 64Mi
limits:
cpu: 1
memory: 256Mi
volumeMounts:
- name: arc60808-secret
mountPath: /private.key
subPath: private.key
readOnly: true
- name: arc60808-secret
mountPath: /public.pem
subPath: public.pem
readOnly: true
volumes:
- name: arc60808-secret
secret:
secretName: arc60808-tradutor

---

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: arc60808-tradutor-julinha
labels:
course: arc60808
app: tradutor
bot: julinha
spec:
replicas: 1
template:
metadata:
labels:
course: arc60808
app: tradutor
bot: julinha
spec:
containers:
- name: arc60808-tradutor-julinha
image: julinho/tradutor
env:
Expand Down
25 changes: 24 additions & 1 deletion srv/ensino/ARC60808/tradutor/Service.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: arc60808-tradutor
name: arc60808-tradutor-julinho
labels:
course: arc60808
app: tradutor
bot: julinho
spec:
ports:
- name: http
Expand All @@ -14,3 +15,25 @@ spec:
selector:
course: arc60808
app: tradutor
bot: julinho

---

apiVersion: v1
kind: Service
metadata:
name: arc60808-tradutor-julinha
labels:
course: arc60808
app: tradutor
bot: julinha
spec:
ports:
- name: http
port: 3000
protocol: TCP
targetPort: 3000
selector:
course: arc60808
app: tradutor
bot: julinha

0 comments on commit 7baa3d4

Please sign in to comment.