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

34 lines
934 B
YAML
Raw Normal View History

2023-06-19 23:51:17 +10:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: helloworld
namespace: vdk2ch
2023-06-21 17:22:41 +10:00
annotations:
description: 'my frontend running nginx'
2023-06-21 17:24:59 +10:00
labels:
labe1: my_test_label1
2023-06-21 17:25:40 +10:00
labe2: my_test_label
2023-06-19 23:51:17 +10:00
spec:
2023-07-04 00:08:38 +10:00
revisionHistoryLimit: 0
2023-06-19 23:51:17 +10:00
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:17:04 +10:00
what-ever-label-i-add-here: 'test_string-asfd14123UE.asdfeee333DS'
2023-06-21 17:18:21 +10:00
what/here.com: '312321'
2023-06-21 17:27:23 +10:00
labe2: my_test_label
2023-06-21 17:28:54 +10:00
labe3: my_test_label3
2023-06-21 17:18:21 +10:00
annotations:
imageregistry: "https://hub.docker.com/"
2023-06-21 17:19:37 +10:00
what/here.com2: "https://github.com/"
2023-06-21 17:30:17 +10:00
anno: 'where it will stop??'
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