Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 87dcbe9

Browse files
committed
initial commit for lab 7
1 parent ef9ed30 commit 87dcbe9

9 files changed

+372
-6
lines changed

src/yaml/cloudant-ibmcloud.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: ibmcloud.ibm.com/v1alpha1
2+
kind: Service
3+
metadata:
4+
name: mycloudant
5+
spec:
6+
plan: lite
7+
serviceClass: cloudantnosqldb
8+
---
9+
apiVersion: ibmcloud.ibm.com/v1alpha1
10+
kind: Binding
11+
metadata:
12+
name: binding-cloudant
13+
spec:
14+
serviceName: mycloudant
15+
role: Manager
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: guestbook-cloudant
5+
labels:
6+
app: guestbook
7+
spec:
8+
selector:
9+
matchLabels:
10+
app: guestbook
11+
template:
12+
metadata:
13+
labels:
14+
app: guestbook
15+
spec:
16+
containers:
17+
- name: guestbook
18+
image: jzaccone/guestbook-nodejs:cloudant
19+
resources:
20+
requests:
21+
cpu: 100m
22+
memory: 100Mi
23+
ports:
24+
- name: http
25+
containerPort: 3000
26+
env:
27+
- name: CLOUDANT_URL
28+
valueFrom:
29+
secretKeyRef:
30+
name: binding-cloudant
31+
key: url
32+
- name : CLOUDANT_DB
33+
value: "test"

src/yaml/guestbook-service.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: guestbook
5+
labels:
6+
app: guestbook
7+
spec:
8+
ports:
9+
- port: 3000
10+
protocol: TCP
11+
targetPort: 3000
12+
selector:
13+
app: guestbook
14+
type: NodePort
425 KB
Loading
269 KB
Loading
443 KB
Loading
398 KB
Loading
264 KB
Loading

workshop/Lab7/README.md

Lines changed: 310 additions & 6 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)