chore: lint yaml (#19)
parent
30e82a16da
commit
813a7787c1
@ -1,2 +1,3 @@
|
|||||||
|
---
|
||||||
MD013: false # long lines
|
MD013: false # long lines
|
||||||
MD034: false # bare urls
|
MD034: false # bare urls
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
extends: default
|
||||||
|
|
||||||
|
rules:
|
||||||
|
line-length: disable
|
||||||
|
comments:
|
||||||
|
min-spaces-from-content: 1
|
@ -1,8 +1,9 @@
|
|||||||
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
name: simple-pod
|
name: simple-pod
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: simple-pod
|
- name: simple-pod
|
||||||
image: mhausenblas/simpleservice:0.5.0
|
image: mhausenblas/simpleservice:0.5.0
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
name: bash
|
name: bash
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: bash
|
- name: bash
|
||||||
image: nginx
|
image: nginx
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: simple-service
|
name: simple-service
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
targetPort: 9876
|
targetPort: 9876
|
||||||
selector:
|
selector:
|
||||||
app: simple-deployment
|
app: simple-deployment
|
||||||
|
@ -1,15 +1,16 @@
|
|||||||
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
name: liveness-probe-pod
|
name: liveness-probe-pod
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: liveness-probe-pod
|
- name: liveness-probe-pod
|
||||||
image: nginx
|
image: nginx
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
- exit
|
- exit
|
||||||
- "1"
|
- "1"
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
|
---
|
||||||
# three node (two workers) cluster config
|
# three node (two workers) cluster config
|
||||||
kind: Cluster
|
kind: Cluster
|
||||||
apiVersion: kind.sigs.k8s.io/v1alpha3
|
apiVersion: kind.sigs.k8s.io/v1alpha3
|
||||||
nodes:
|
nodes:
|
||||||
- role: control-plane
|
- role: control-plane
|
||||||
- role: worker
|
- role: worker
|
||||||
- role: worker
|
- role: worker
|
||||||
|
@ -1,21 +1,22 @@
|
|||||||
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
name: two-containers
|
name: two-containers
|
||||||
spec:
|
spec:
|
||||||
volumes:
|
volumes:
|
||||||
- name: shared-data
|
- name: shared-data
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
containers:
|
containers:
|
||||||
- name: nginx
|
- name: nginx
|
||||||
image: nginx
|
image: nginx
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /usr/share/nginx/html
|
mountPath: /usr/share/nginx/html
|
||||||
- name: debian
|
- name: debian
|
||||||
image: debian
|
image: debian
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /pod-data
|
mountPath: /pod-data
|
||||||
command: ["/bin/sh"]
|
command: ["/bin/sh"]
|
||||||
args: ["-c", "echo Hello from the debian container > /pod-data/index.html"]
|
args: ["-c", "echo Hello from the debian container > /pod-data/index.html"]
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: mysql
|
name: mysql
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- port: 3306
|
- port: 3306
|
||||||
selector:
|
selector:
|
||||||
app: mysql
|
app: mysql
|
||||||
clusterIP: None
|
clusterIP: None
|
||||||
|
Loading…
Reference in New Issue