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