kubernetes-handbook/manifests/linkerd/world-v2.yml

43 lines
769 B
YAML
Raw Normal View History

2017-08-01 21:20:16 +08:00
---
apiVersion: v1
kind: ReplicationController
metadata:
name: world-v2
spec:
replicas: 3
selector:
app: world-v2
template:
metadata:
labels:
app: world-v2
spec:
dnsPolicy: ClusterFirst
containers:
- name: service
2018-05-04 19:53:39 +08:00
image: harbor-001.jimmysong.io/library/buoyantio-helloworld:0.1.4
2017-08-01 21:20:16 +08:00
env:
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: TARGET_WORLD
value: earth
args:
- "-addr=:7778"
ports:
- name: service
containerPort: 7778
---
apiVersion: v1
kind: Service
metadata:
name: world-v2
spec:
selector:
app: world-v2
clusterIP: None
ports:
- name: http
port: 7778