Merge pull request #120 from andyzhangx/format-yaml-files
doc: format yaml files
This commit is contained in:
commit
683838d7bb
@ -1,7 +1,7 @@
|
||||
image:
|
||||
nfs:
|
||||
repository: gcr.io/k8s-staging-sig-storage/nfsplugin
|
||||
tag: amd64-linux-canary
|
||||
repository: mcr.microsoft.com/k8s/csi/nfs-csi
|
||||
tag: latest
|
||||
pullPolicy: IfNotPresent
|
||||
csiProvisioner:
|
||||
repository: k8s.gcr.io/sig-storage/csi-provisioner
|
||||
|
||||
@ -61,7 +61,7 @@ spec:
|
||||
cpu: 10m
|
||||
memory: 20Mi
|
||||
- name: nfs
|
||||
image: gcr.io/k8s-staging-sig-storage/nfsplugin:amd64-linux-canary
|
||||
image: mcr.microsoft.com/k8s/csi/nfs-csi:latest
|
||||
securityContext:
|
||||
privileged: true
|
||||
capabilities:
|
||||
|
||||
@ -63,7 +63,7 @@ spec:
|
||||
capabilities:
|
||||
add: ["SYS_ADMIN"]
|
||||
allowPrivilegeEscalation: true
|
||||
image: gcr.io/k8s-staging-sig-storage/nfsplugin:amd64-linux-canary
|
||||
image: mcr.microsoft.com/k8s/csi/nfs-csi:latest
|
||||
args:
|
||||
- "-v=5"
|
||||
- "--nodeid=$(NODE_ID)"
|
||||
|
||||
@ -16,29 +16,29 @@ kind: Deployment
|
||||
metadata:
|
||||
name: deployment-nfs
|
||||
spec:
|
||||
replicas: 3
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
name: deployment-nfs
|
||||
name: deployment-nfs
|
||||
template:
|
||||
metadata:
|
||||
name: deployment-nfs
|
||||
labels:
|
||||
name: deployment-nfs
|
||||
labels:
|
||||
name: deployment-nfs
|
||||
spec:
|
||||
nodeSelector:
|
||||
"kubernetes.io/os": linux
|
||||
containers:
|
||||
- name: deployment-nfs
|
||||
image: mcr.microsoft.com/oss/nginx/nginx:1.17.3-alpine
|
||||
command:
|
||||
- "/bin/sh"
|
||||
- "-c"
|
||||
- while true; do echo $(hostname) $(date) >> /mnt/nfs/outfile; sleep 1; done
|
||||
volumeMounts:
|
||||
- name: nfs
|
||||
mountPath: "/mnt/nfs"
|
||||
- name: deployment-nfs
|
||||
image: mcr.icrosoft.com/oss/nginx/nginx:1.19.5
|
||||
command:
|
||||
- "/bin/bash"
|
||||
- "-c"
|
||||
- set -euo pipefail; while true; do echo $(hostname) $(date) >> /mnt/nfs/outfile; sleep 1; done
|
||||
volumeMounts:
|
||||
- name: nfs
|
||||
mountPath: "/mnt/nfs"
|
||||
volumes:
|
||||
- name: nfs
|
||||
persistentVolumeClaim:
|
||||
claimName: pvc-deployment-nfs
|
||||
- name: nfs
|
||||
persistentVolumeClaim:
|
||||
claimName: pvc-deployment-nfs
|
||||
|
||||
@ -39,15 +39,15 @@ metadata:
|
||||
name: nginx-nfs-example
|
||||
spec:
|
||||
containers:
|
||||
- image: nginx
|
||||
name: nginx
|
||||
ports:
|
||||
- containerPort: 80
|
||||
protocol: TCP
|
||||
volumeMounts:
|
||||
- mountPath: /var/www
|
||||
name: pvc-nginx
|
||||
- image: nginx
|
||||
name: nginx
|
||||
ports:
|
||||
- containerPort: 80
|
||||
protocol: TCP
|
||||
volumeMounts:
|
||||
- mountPath: /var/www
|
||||
name: pvc-nginx
|
||||
volumes:
|
||||
- name: pvc-nginx
|
||||
persistentVolumeClaim:
|
||||
claimName: pvc-nginx
|
||||
- name: pvc-nginx
|
||||
persistentVolumeClaim:
|
||||
claimName: pvc-nginx
|
||||
|
||||
@ -9,4 +9,4 @@ spec:
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
storageClassName: nfs-csi
|
||||
storageClassName: nfs-csi
|
||||
|
||||
@ -7,7 +7,7 @@ metadata:
|
||||
app: nginx
|
||||
spec:
|
||||
serviceName: statefulset-nfs
|
||||
replicas: 3
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
@ -17,11 +17,11 @@ spec:
|
||||
"kubernetes.io/os": linux
|
||||
containers:
|
||||
- name: statefulset-nfs
|
||||
image: mcr.microsoft.com/oss/nginx/nginx:1.17.3-alpine
|
||||
image: mcr.microsoft.com/oss/nginx/nginx:1.19.5
|
||||
command:
|
||||
- "/bin/sh"
|
||||
- "/bin/bash"
|
||||
- "-c"
|
||||
- while true; do echo $(date) >> /mnt/nfs/outfile; sleep 1; done
|
||||
- set -euo pipefail; while true; do echo $(date) >> /mnt/nfs/outfile; sleep 1; done
|
||||
volumeMounts:
|
||||
- name: persistent-storage
|
||||
mountPath: /mnt/nfs
|
||||
|
||||
@ -7,7 +7,7 @@ provisioner: nfs.csi.k8s.io
|
||||
parameters:
|
||||
server: nfs-server.default.svc.cluster.local
|
||||
share: /
|
||||
reclaimPolicy: Retain # only retain is supported
|
||||
reclaimPolicy: Retain
|
||||
volumeBindingMode: Immediate
|
||||
mountOptions:
|
||||
- hard
|
||||
|
||||
@ -29,7 +29,7 @@ if [[ "${deployDirNum}" != "${helmDirNum}" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for path in "deploy/*.yaml"
|
||||
for path in "deploy/*.yaml" "deploy/example/*.yaml" "deploy/example/nfs-provisioner/*.yaml"
|
||||
do
|
||||
echo "checking yamllint under path: $path ..."
|
||||
yamllint -f parsable $path | grep -v "line too long" > $LOG
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user