mirror of
https://github.com/Noratrieb/config-language.git
synced 2026-01-14 16:45:06 +01:00
stuff
This commit is contained in:
commit
bce268cceb
13 changed files with 672 additions and 0 deletions
33
example-configs/kubernetes/deployment.yml
Normal file
33
example-configs/kubernetes/deployment.yml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# real k8s configs use --- and not a top-level array
|
||||
- apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: my-nginx
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
run: my-nginx
|
||||
replicas: 2
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
run: my-nginx
|
||||
someOther: label
|
||||
spec:
|
||||
containers:
|
||||
- name: my-nginx
|
||||
image: nginx
|
||||
ports:
|
||||
- containerPort: 80
|
||||
- apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: my-nginx
|
||||
labels:
|
||||
run: my-nginx
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
protocol: TCP
|
||||
selector:
|
||||
run: my-nginx
|
||||
Loading…
Add table
Add a link
Reference in a new issue