kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch11/bulletin-board/kubernetes/bb-deployment.yaml

23 lines
474 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: bulletin-board
labels:
kiamol: ch11
app: bulletin-board
spec:
selector:
matchLabels:
app: bulletin-board
template:
metadata:
labels:
app: bulletin-board
spec:
containers:
- name: bulletin-board
image: kiamol/ch11-bulletin-board:dev
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8080