标签:docke match src policy temp spec target type 云服务
apiVersion: v1
kind: Service
metadata:
name: ivd-client
spec:
selector:
app: ivd-client
tier: ivd-client
ports:
- protocol: "TCP"
port: 80
targetPort: 80
type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: ivd-client
spec:
selector:
matchLabels:
app: ivd-client
tier: ivd-client
track: stable
replicas: 1
template:
metadata:
labels:
app: ivd-client
tier: ivd-client
track: stable
spec:
containers:
- name: ivd-client
image: "{ 镜像名 }"
imagePullPolicy: Always
resources:
requests:
cpu: 50m
memory: 30Mi
limits:
cpu: 100m
memory: 100Mi
ports:
- containerPort: 80
imagePullSecrets:
- name: amwise
标签:docke match src policy temp spec target type 云服务
原文地址:https://www.cnblogs.com/barry-cbt/p/12518977.html