# local path-provisioner # https://github.com/rancher/local-path-provisioner wget https://raw.githubusercontent.com/rancher/local-path-provisioner/v0.0.29/deploy/local-path-storage.yaml sed -i 's#/opt/local-path-provisioner#/opt/k8s-local-path-storage#g' crictl pull dhub.kubesre.xyz/rancher/local-path-provisioner:v0.0.29 ctr -n k8s.io i tag dhub.kubesre.xyz/rancher/local-path-provisioner:v0.0.29 docker.io/rancher/local-path-provisioner:v0.0.29 k apply -f local-path-storage.yaml
# This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/ replicaCount:1
# This is local storage request storage:1Gi
# This is default mount path for main storage defaultMountPath:"/home/ubuntu"
# This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/ image: repository:ubuntu # This sets the pull policy for images. pullPolicy:IfNotPresent
# This is for setting up a service more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/ service: # This sets the service type more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types type:ClusterIP # This sets the ports more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#field-spec-ports port:80
# This is sshConfig mapping from host machine sshConfig: enabled:false idFile:id_ed25519 hostPath:/home/ethereal/.ssh/ mountPath:/root/.ssh/
# This custom command for some images customCommand: command: [ "/bin/bash", "-c", "--" ] args: [ "sed -i s@/archive.ubuntu.com/@/mirrors.tuna.tsinghua.edu.cn/@g /etc/apt/sources.list && apt-get update && apt-get install -y openssh-server && echo -e \"PermitRootLogin yes\n$(yes '020402' | passwd root)\" | tee -a /etc/ssh/sshd_config && service ssh restart || exit 1; while true; do sleep 3600; done;" ]
# This is to use privileged container privileged:false
# This is to setup the liveness and readiness probes more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ readinessProbe: exec: command: -/bin/sh --c -servicesshstatus|grep'running'# check SSH service
livenessProbe: []
# This is for the secretes for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ imagePullSecrets: []
# This is for setting Kubernetes Annotations to a Pod. # For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ podAnnotations: {} # This is for setting Kubernetes Labels to a Pod. # For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ podLabels: {}
resources: {} # We usually recommend not to specify default resources and to leave this as a conscious # choice for the user. This also increases chances charts run on environments with little # resources, such as Minikube. If you do want to specify resources, uncomment the following # lines, adjust them as necessary, and remove the curly braces after 'resources:'. # limits: # cpu: 100m # memory: 128Mi # requests: # cpu: 100m # memory: 128Mi
# Additional volumes on the output Deployment definition. volumes: []
# Additional volumeMounts on the output Deployment definition. volumeMounts: []