kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch10/pi/templates/web.yaml

26 lines
539 B
YAML
Raw Normal View History

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-web
labels:
kiamol: ch10
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: {{ .Release.Name }}
component: web
template:
metadata:
labels:
app: {{ .Release.Name }}
component: web
spec:
containers:
- image: kiamol/ch05-pi
command: ["dotnet", "Pi.Web.dll", "-m", "web"]
name: web
ports:
- containerPort: 80
name: http