Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
helm_overview [2020/05/16 20:23] andonovjhelm_overview [2020/05/22 13:30] (current) andonovj
Line 10: Line 10:
 This scenario covers version 3.x of Helm. If you are using version 2.x, it's highly advisable to move to the recent version. This scenario covers version 3.x of Helm. If you are using version 2.x, it's highly advisable to move to the recent version.
  
-=====Installation=====+=====Install Simple Redis Chart=====
 Helm can be installed very easily as follows: Helm can be installed very easily as follows:
  
Line 194: Line 194:
 </Code> </Code>
  
-It appears that is deprecated, be sure to use the Bitnami version:+It appears that is deprecated, be sure to use the Bitnami version, for which we have to add the repo first again and install it:
  
-<Code:bash|Check again the Redis+<Code:bash|Install the Bitnami Regis
-master $ helm search repo redis +master $ helm repo add bitnami https://charts.bitnami.com/bitnami 
-NAME                                    CHART VERSION   APP VERSION     DESCRIPTION +"bitnami" has been added to your repositories 
-bitnami/redis                           10.6.13         6.0.          Open source, advanced key-value storeIt is of... +master $ helm install redis bitnami/redis 
-bitnami/redis-cluster                   2.1.0           6.0.1           Open source, advanced key-value store. It is of... +NAME: redis 
-stable/prometheus-redis-exporter        3.4.0           1.3.4           Prometheus exporter for Redis metrics +LAST DEPLOYED: Fri May 22 13:23:40 2020 
-stable/redis                            10.5.7          5.0.7           DEPRECATED Open source, advanced key-value stor...  <-DEPRECTED +NAMESPACE: default 
-stable/redis-ha                         4.4.4           5.0.6           Highly available Kubernetes implementation of R... +STATUS: deployed 
-stable/sensu                            0.2.3           0.28            Sensu monitoring framework backed by the Redis ...+REVISION: 1 
 +TEST SUITE: None 
 +NOTES: 
 +** Please be patient while the chart is being deployed ** 
 +Redis can be accessed via port 6379 on the following DNS names from within your cluster: 
 + 
 +redis-master.default.svc.cluster.local for read/write operations 
 +redis-slave.default.svc.cluster.local for read-only operations 
 + 
 + 
 +To get your password run: 
 + 
 +    export REDIS_PASSWORD=$(kubectl get secret --namespace default redis -o jsonpath="{.data.redis-password}" | base64 --decode) 
 + 
 +To connect to your Redis server: 
 + 
 +1Run a Redis pod that you can use as a client: 
 + 
 +   kubectl run --namespace default redis-client --rm --tty -i --restart='Never'
 +    --env REDIS_PASSWORD=$REDIS_PASSWORD \ 
 +   --image docker.io/bitnami/redis:6.0.3-debian-10-r2 -- bash 
 + 
 +2Connect using the Redis CLI: 
 +   redis-cli -h redis-master -a $REDIS_PASSWORD 
 +   redis-cli -h redis-slave -a $REDIS_PASSWORD 
 + 
 +To connect to your database from outside the cluster execute the following commands: 
 + 
 +    kubectl port-forward --namespace default svc/redis-master 6379:6379 & 
 +    redis-cli -h 127.0.0.-p 6379 -a $REDIS_PASSWORD 
 +master $ helm ls 
 +NAME    NAMESPACE       REVISION        UPDATED                                 STATUS          CHART           APP VERSION 
 +redis   default                       2020-05-22 13:23:40.824372834 +0000 UTC deployed        redis-10.6.15   6.0.3
 master $ master $
 </Code> </Code>
  
 +====Create Persistent Storage====
 +Let's create couple persistant Volumes for storage:
  
 +<Code:bash|Create Persistent Storage> 
 +master $ kubectl apply -f pv.yaml 
 +persistentvolume/pv-volume1 created 
 +persistentvolume/pv-volume2 created 
 +persistentvolume/pv-volume3 created 
 +master $ mkdir /mnt/data1 /mnt/data2 /mnt/data3 --mode=777 
 +master $ cat pv.yaml 
 +kind: PersistentVolume 
 +apiVersion: v1 
 +metadata: 
 +  name: pv-volume1 
 +  labels: 
 +    type: local 
 +spec: 
 +  capacity: 
 +    storage: 10Gi 
 +  accessModes: 
 +    - ReadWriteOnce 
 +  hostPath: 
 +    path: "/mnt/data1" 
 +--- 
 +kind: PersistentVolume 
 +apiVersion: v1 
 +metadata: 
 +  name: pv-volume2 
 +  labels: 
 +    type: local 
 +spec: 
 +  capacity: 
 +    storage: 10Gi 
 +  accessModes: 
 +    - ReadWriteOnce 
 +  hostPath: 
 +    path: "/mnt/data2" 
 +--- 
 +kind: PersistentVolume 
 +apiVersion: v1 
 +metadata: 
 +  name: pv-volume3 
 +  labels: 
 +    type: local 
 +spec: 
 +  capacity: 
 +    storage: 10Gi 
 +  accessModes: 
 +    - ReadWriteOnce 
 +  hostPath: 
 +    path: "/mnt/data3" 
 +</Code>
  • helm_overview.1589660618.txt.gz
  • Last modified: 2020/05/16 20:23
  • by andonovj