-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhellok8sSvcRc.yml
More file actions
46 lines (46 loc) · 850 Bytes
/
Copy pathhellok8sSvcRc.yml
File metadata and controls
46 lines (46 loc) · 850 Bytes
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
apiVersion: v1
kind: ReplicationController
metadata:
name: hello
spec:
replicas: 3
selector:
app: hello
template:
metadata:
labels:
app: hello
spec:
dnsPolicy: ClusterFirst
containers:
- name: service
image: jcooke89/dotnethello:v1.14
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: HTTP_PROXY
value: $(NODE_NAME):4140
ports:
- name: service
containerPort: 7777
---
apiVersion: v1
kind: Service
metadata:
name: hello
spec:
selector:
app: hello
type: ClusterIP
ports:
- name: http
port: 7777
- name: external
port: 80
targetPort: 7777