Command line
helm install --set wordpressDeployment.service.name="test press" cans-release projet-devops/wp-chart
böylece –set –set diyerek values.chart i override yapabiliriz.
Custom values yaml
eger cok ise kendimiz bir values.yaml yaratip icine koyabiliriz daha sonra
helm install --values custom-values.yaml cans-release projet-devops/wp-chart
helm pull
Ayrica istersek repoyu cekebiliriz.
önce repo add
helm repo add projet-devops https://khalilsellamii.github.io/wordpress-helm-chart
"projet-devops" has been added to your repositories
sonra
helm pull --untar projet-devops/wp-chart
untar tgz dosyasini yolda acmasi icin. Böylece klasör olarak geldi
wp-chart >$ls -l
total 16
-rw-r--r--@ 1 can.bueyuekburc staff 158 Feb 18 08:48 Chart.yaml
drwxr-xr-x@ 5 can.bueyuekburc staff 160 Feb 18 08:48 templates
-rw-r--r--@ 1 can.bueyuekburc staff 998 Feb 18 08:48 values.yaml
simdi values.yaml editleyip
helm install cans-release ./we-chart
seklinde klasörü göstererek install edebiliriz.
repo eklemeden
Eger repo eklemeden bakmak istiyorsaniz reponun url detaylarina bakmaniz ve tgz uzantisini bulmaniz gerekli
curl -s https://khalilsellamii.github.io/wordpress-helm-chart/index.yaml
apiVersion: v1
entries:
wp-chart:
- apiVersion: v2
appVersion: 1.16.0
created: "2023-10-23T03:41:23.842440143+01:00"
description: A Helm chart for wordpress deployed on Azure Kubernete service
digest: 596a25d94db701a748336f2518d204398f3a0511e467f7767019ad43111ff757
name: wp-chart
type: application
urls:
- https://khalilsellamii.github.io/wordpress-helm-chart/wp-chart-0.1.0.tgz
version: 0.1.0
generated: "2023-10-23T03:41:23.840989247+01:00"
helm show values https://khalilsellamii.github.io/wordpress-helm-chart/wp-chart-0.1.0.tgz
wordpressDeployment:
replicaCount: 1
name: wordpress
image:
repository: wordpress
tag: latest
port: 80
service:
name: wordpress
protocol: TCP
type: ClusterIP
port: 80
targetPort: 80
env:
- name: WORDPRESS_DB_HOST
value: mysql
- name: WORDPRESS_DB_USER
value: root
- name: WORDPRESS_DB_NAME
value: wordpress
persistence:
enabled: true
name: wordpress-volume
mountPath: /var/www
accessMode: ReadWriteOnce
storageSize: 1Gi
mysqlStatefulSet:
replicaCount: 1
name: mysql
image:
repository: mysql
tag: 5.7
port: 3306
imagePullPolicy: Always
service:
name: mysql
protocol: TCP
type: ClusterIP
port: 3306
targetPort: 3306
env:
name: MYSQL_DATABASE
value : wordpress
persistence:
enabled: true
name: mysql-storage
mountPath: /var/lib/mysql
storageClassName: "default"
accessModes: [ "ReadWriteOnce" ]
storageSize: 1Gi