k8s/manifests/01-deployments/hw-hw.yaml

21 lines
534 B
YAML
Raw Normal View History

2023-06-19 23:51:17 +10:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: helloworld
namespace: vdk2ch
spec:
selector:
matchLabels:
app: helloworld
replicas: 1 # tells deployment to run 1 pods matching the template
template: # create pods using pod definition in this template
metadata:
labels:
app: helloworld
2023-06-21 17:15:09 +10:00
what-ever-label-i-add-here: 'test string asfd14123UE*@#'
2023-06-19 23:51:17 +10:00
spec:
containers:
- name: helloworld
image: karthequian/helloworld:latest
ports:
2023-06-20 00:15:09 +10:00
- containerPort: 80