kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch17/kube-explorer/deployment.yaml

33 lines
614 B
YAML
Raw Normal View History

apiVersion: v1
kind: ServiceAccount
metadata:
name: kube-explorer
labels:
kiamol: ch17
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kube-explorer
labels:
kiamol: ch17
spec:
selector:
matchLabels:
app: kube-explorer
template:
metadata:
labels:
app: kube-explorer
spec:
serviceAccountName: kube-explorer
containers:
- image: kiamol/ch17-kube-explorer
name: web
ports:
- containerPort: 80
name: http
env:
- name: ASPNETCORE_ENVIRONMENT
value: Development