-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkube.deploy.yml
More file actions
60 lines (60 loc) · 1.54 KB
/
Copy pathkube.deploy.yml
File metadata and controls
60 lines (60 loc) · 1.54 KB
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
apiVersion: v1
kind: Service
metadata:
name: "java-ms-64"
labels:
app: "java-ms-64"
tier: frontend
spec:
# if your cluster supports it, uncomment the following to automatically create
# an external load-balanced IP for the frontend service.
#type: LoadBalancer
ports:
# the port that this service should serve on
- port: 3000
selector:
app: "java-ms-64"
tier: frontend
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: "java-ms-64"
# these labels can be applied automatically
# from the labels in the pod template if not set
# labels:
# app: "java-ms-64"
# tier: frontend
spec:
# this replicas value is default
# modify it according to your case
replicas: 1
# selector can be applied automatically
# from the labels in the pod template if not set
# selector:
# matchLabels:
# app: "java-ms-64"
# tier: frontend
template:
metadata:
labels:
app: "java-ms-64"
tier: frontend
spec:
containers:
- name: "java-ms-64"
image: registry.ng.bluemix.net/MYSPACE/MYIMAGE:latest
resources:
requests:
cpu: 100m
memory: 100Mi
env:
- name: GET_HOSTS_FROM
value: dns
# If your cluster config does not include a dns service, then to
# instead access environment variables to find service host
# info, comment out the 'value: dns' line above, and uncomment the
# line below.
# value: env
ports:
- containerPort: 3000