[root@k7smaster ~]# helm create mychart Creating mychart [root@k7smaster demo-chart]# ll 总用量 20 -rw-r--r-- 1 root root 106 9月 9 13:20 Chart.yaml -rw-r--r-- 1 root root 225 9月 9 13:20 README.md -rw-r--r-- 1 root root 237 9月 9 13:20 requirements.lock -rw-r--r-- 1 root root 172 9月 9 13:20 requirements.yaml drwxr-xr-x 2 root root 106 9月 9 13:20 templates -rw-r--r-- 1 root root 1289 9月 9 13:20 values.yaml [root@k7smaster demo-chart]# cat Chart.yaml apiVersion: v1 appVersion: "1.0" description: A Helm chart for Kubernetes name: demo-chart version: 0.0.1
[root@k7smaster demo-chart]# cat values.yaml # Default values for demo-chart. # This is a YAML-formatted file. # Declare variables to be passed into your templates. replicaCount: 3 image: repository: wardviaene/node-demo-app tag: v0.0.1 pullPolicy: IfNotPresent service: type: LoadBalancer port: 80 ingress: enabled: false annotations: {} # kubernetes.io/ingress.class: nginx # kubernetes.io/tls-acme: "true" path: / hosts: - node-demo-app.newtech.academy tls: [] # - secretName: chart-example-tls # hosts: # - chart-example.local 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 nodeSelector: {} tolerations: [] affinity: {} ## ## MariaDB chart configuration ## mariadb: enabled: true replication: enabled: false db: name: app user: app-user master: persistence: enabled: true accessMode: ReadWriteOnce size: 8Gi
来源:oschina
链接:https://my.oschina.net/u/4408223/blog/4645263



