76 lines
1.4 KiB
YAML
76 lines
1.4 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: helloworld
|
|
labels:
|
|
app: helloworld
|
|
service: helloworld
|
|
spec:
|
|
ipFamilyPolicy: RequireDualStack
|
|
ipFamilies:
|
|
- IPv6
|
|
- IPv4
|
|
ports:
|
|
- port: 5000
|
|
name: http
|
|
selector:
|
|
app: helloworld
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: helloworld-v1
|
|
labels:
|
|
app: helloworld
|
|
version: v1
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: helloworld
|
|
version: v1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: helloworld
|
|
version: v1
|
|
spec:
|
|
containers:
|
|
- name: helloworld
|
|
image: docker.io/istio/examples-helloworld-v1:1.0
|
|
resources:
|
|
requests:
|
|
cpu: "100m"
|
|
imagePullPolicy: IfNotPresent #Always
|
|
ports:
|
|
- containerPort: 5000
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: helloworld-v2
|
|
labels:
|
|
app: helloworld
|
|
version: v2
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: helloworld
|
|
version: v2
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: helloworld
|
|
version: v2
|
|
spec:
|
|
containers:
|
|
- name: helloworld
|
|
image: docker.io/istio/examples-helloworld-v2:1.0
|
|
resources:
|
|
requests:
|
|
cpu: "100m"
|
|
imagePullPolicy: IfNotPresent #Always
|
|
ports:
|
|
- containerPort: 5000
|