How to deploy helm chart (that are stored as images) using Ansible? - ansible

I have stored the custom made helm charts (Elasticsearch, Longhorn) in the gitlab container registry as images. How can I deploy the helm chart to a kubernetes environment using Ansible?

There are a lot of Ansible module to deploy a helm charts for example you can follow this links where you can find a lot of example:
https://www.ansible.com/blog/automating-helm-using-ansible
https://docs.ansible.com/ansible/latest/collections/community/kubernetes/helm_module.html
I hope that can help you to resolve your issue .

Related

Getting GKE Deployment Information Via Go

We have multiple GKE clusters in different GCP projects.
For each cluster in each project, I essentially want to run the following via Go:
kubectl get deployment [deployment_name] -o json | jq '.metadata.labels'
I already have 2 functions to get the GCP projects and the cluster names per project, the last of which uses:
"cloud.google.com/go/container/apiv1"
"google.golang.org/genproto/googleapis/container/v1"
Is it possible to use these APIs to get the deployment information for the GKE clusters?
Or would I need to use kubernetes/client-go?
I couldn't seem to find a function that suited my needs under: https://cloud.google.com/go/docs/reference/cloud.google.com/go/container/latest/apiv1
And the kubernetes Go client seems to rely on a .kubeconfig file, whereas I'd just like to use $GOOGLE_APPLICATION_CREDENTIALS, if possible:
https://github.com/kubernetes/client-go/blob/master/examples/out-of-cluster-client-configuration/main.go
Any help with this would be most appreciated.

How to integrate datadog in helm chart and use that helm chart inside jenkins file?

I need to integrate datadog in helm chart. And do I need to add command for datadog in jenkins file as well?

Deploying more than one docker image with Helm, and developing helm charts

I am just getting started with Helm and Kubernetes. I have two docker images that I want to deploy, possibly a third in the future. I was wondering how to go about that. If I start with using the helm create chart-name, I'm able to change the docker image name and respective values to make it work, but then how do I go about having the same chart deploy another docker image. I want to have each docker image on a separate pod, would that mean different files under the template folder? I am not sure where to go from here..
Thank you for your help!

How to deploy a single node elasticsearch cluster in Google Kubernetes engine?

I have configured a small instance of google kubernetes cluster with one node. I want to deploy elasticsearch service in this cluster. How do I set up that? I need the necessary steps.
In Google Cloud Marketplacep there are different categorie of elasticsearch if you want container images:
You need just to use the gcloud pull command
Elasticsearch 5:
gcloud auth configure-docker && docker pull marketplace.gcr.io/google/elasticsearch5:latest
Elasticsearch 6:
gcloud auth configure-docker && docker pull marketplace.gcr.io/google/elasticsearch6:latest
For kubernetes app (like depluing directly to your cluster)
As well you can deply using HELM as suggested by #Luiz
You can use the elasticsearch helm chart and manually tune it's resources limits and requests to fit into one node.

yaml file create a container cluster in google cloud platform

I am trying create a cluster with the help of deployment manager script. I found some python scripts to do that in GitHub. But I am looking for YAML file. PLease share any reference.

Resources