This repository has been archived by the owner on Oct 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 273
/
kube-deploy.yaml
79 lines (79 loc) · 1.83 KB
/
kube-deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Source: service.yaml
apiVersion: v1
kind: Service
metadata:
name: tone-analyzer-nodejs
labels:
app: tone-analyzer-nodejs
chart: tone-analyzer-nodejs-0.1.0
spec:
type: ClusterIP
ports:
- name: http
port: 3000
targetPort: 3000
selector:
app: tone-analyzer-nodejs
---
# Source: deployment.yaml
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: tone-analyzer-nodejs
labels:
app: tone-analyzer-nodejs
chart: tone-analyzer-nodejs-0.1.0
spec:
replicas: 1
selector:
matchLabels:
app: tone-analyzer-nodejs
template:
metadata:
labels:
app: tone-analyzer-nodejs
spec:
containers:
- name: tone-analyzer-nodejs
image: "ibmwatson/tone-analyzer-nodejs:latest"
imagePullPolicy: Always
env:
- name: TONE_ANALYZER_IAM_APIKEY
value: "not-a-real-password"
- name: TONE_ANALYZER_URL
value: "https://gateway.watsonplatform.net/tone-analyzer/api"
- name: TONE_ANALYZER_IAM_URL
value: "https://iam.bluemix.net/identity/token"
ports:
- containerPort: 3000
protocol: TCP
livenessProbe:
httpGet:
path: "/"
port: 3000
scheme: HTTP
readinessProbe:
httpGet:
path: "/"
port: 3000
scheme: HTTP
---
# Source: ingress.yaml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: tone-analyzer-nodejs
labels:
app: tone-analyzer-nodejs
chart: tone-analyzer-nodejs-0.1.0
annotations:
kubernetes.io/ingress.class: nginx
ingress.kubernetes.io/rewrite-target: /
spec:
rules:
- http:
paths:
- path: /
backend:
serviceName: tone-analyzer-nodejs
servicePort: 3000