Initial commit.

This commit is contained in:
Patrick MARIE
2022-02-11 14:42:37 +01:00
commit 4aaf46e069
17 changed files with 655 additions and 0 deletions

10
k8s/samples/basic.yaml Normal file
View File

@ -0,0 +1,10 @@
---
apiVersion: v1
kind: Pod
metadata:
name: alpine
spec:
containers:
- name: alpine
image: alpine:3.15
command: ["sh", "-c", "while true; do sleep 3600; done"]

26
k8s/samples/nginx.yaml Normal file
View File

@ -0,0 +1,26 @@
# A nginx instance with a NodePort.
---
apiVersion: v1
kind: Pod
metadata:
name: nginx
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.21
---
apiVersion: v1
kind: Service
metadata:
name: nginx
spec:
ports:
- port: 8123 # Port exposed in cluster
targetPort: 80 # Port inside container
protocol: TCP
nodePort: 31234
selector:
app: nginx
type: NodePort