k8s 实验 helm 创建自己的包

网友投稿 261 2022-10-27

k8s 实验 helm 创建自己的包

[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

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:kubernetes(二十二) 服务网格化istio入门
下一篇:浅析Spring Cloud Gateway中的令牌桶限流算法
相关文章

 发表评论

暂时没有评论,来抢沙发吧~