<@U04S8PLJWMT> I want to deploy a airbyte applicat...
# ask-ai
w
@kapa.ai I want to deploy a airbyte application server on GKE with helm chart. Previously, I was using EKS with ALB and aws-load-balancer-controller Since GKE does not provide any controller to handle ingress, how should I be deploying the application on GKE?
k
To deploy Airbyte on GKE using the Helm chart, you should use an Ingress Controller compatible with GKE, such as NGINX, since GKE does not natively provide an ingress controller like AWS's ALB. The Airbyte documentation and community examples recommend using the NGINX Ingress Controller for this purpose. Steps: 1. Install the NGINX Ingress Controller You can install it using Helm with the following command:
Copy code
helm install my-release oci://ghcr.io/nginxinc/charts/nginx-ingress --version 1.3.1
Or follow the [official NGINX instructions](https://docs.nginx.com/nginx-ingress-controller/installation/installing-nic/installation-with-helm/) for more details. 2. Configure the Airbyte Ingress Resource Update your ingress resource to route traffic to the correct Airbyte services. Here is an example configuration for Airbyte 1.7+:
Copy code
yaml    apiVersion: networking.k8s.io/v1    kind: Ingress    metadata:      name: airbyte-ingress      annotations:        nginx.ingress.kubernetes.io/ssl-redirect: "false"    spec:      ingressClassName: nginx      rules:        - host: airbyte.example.com # replace with your host          http:            paths:              - backend:                  service:                    name: airbyte-airbyte-connector-builder-server-svc                    port:                      number: 80                path: /api/v1/connector_builder/                pathType: Prefix              - backend:                  service:                    name: airbyte-airbyte-server-svc                    port:                      number: 8001                path: /                pathType: Prefix
Adjust the service names and ports as needed for your deployment. 3. Apply the Ingress Resource Deploy your ingress resource with:
Copy code
kubectl apply -f airbyte-ingress.yaml
4. Update your DNS Point your domain (e.g.,
airbyte.example.com
) to the external IP of your NGINX Ingress Controller. Notes: - If you are using GKE's HTTP(S) Load Balancer, you may need to use Google Cloud's [NEG (Network Endpoint Group)](https://cloud.google.com/kubernetes-engine/docs/how-to/ingress-features#negs) annotations on your Airbyte services to ensure proper backend registration. Community users have reported needing to add
cloud.google.com/neg: '{"ingress": true}'
to the relevant services for GKE ingress compatibility. - The Airbyte documentation does not provide a full GKE-specific ingress guide, but the NGINX approach is the recommended and supported method for self-managed deployments on GKE [[Deploying with Helm](https://docs.airbyte.com/platform/deploying-airbyte/integrations/ingress-1-7#deploying-with-helm)]. References: - [Airbyte Ingress Integration Guide](https://docs.airbyte.com/platform/deploying-airbyte/integrations/ingress) - [Community GKE Example](https://github.com/airbytehq/airbyte/issues/61677) If you need advanced features like Google-managed SSL or IAP, you may need to further customize your ingress and service annotations as per GKE documentation.
w
@kapa.ai Yes, I would be requiring Google Managed SSL.
k
A message from kapa.ai
To use Google Managed SSL with Airbyte on GKE, you need to configure your Ingress resource with the appropriate annotations for Google Cloud. While the Airbyte documentation does not provide a full GKE-specific guide, there are community examples and forum discussions that show how to set up Google-managed SSL certificates with GKE Ingress. Key steps: 1. Create a Google Managed SSL Certificate Use Google Cloud to create a managed SSL certificate resource for your domain. 2. Annotate your Ingress for Google Managed SSL Add the following annotations to your Ingress resource: - `ingress.gcp.kubernetes.io/pre-shared-cert`: The name of your Google-managed SSL certificate. - `kubernetes.io/ingress.global-static-ip-name`: (Optional) The name of a reserved static IP if you want a fixed IP. - `kubernetes.io/ingress.allow-http`: Set to
"false"
to force HTTPS. Example (from a community forum post):
Copy code
hcl    resource "kubernetes_ingress" "airbyte_ingress" {      metadata {        name = "airbyte-ingress"        annotations = {          "ingress.gcp.kubernetes.io/pre-shared-cert"   = "your-ssl-cert-name"          "kubernetes.io/ingress.global-static-ip-name" = "your-static-ip-name"          "kubernetes.io/ingress.allow-http"            = "false"        }      }      spec {        backend {          service_name = "airbyte-webapp-svc"          service_port = "80"        }      }    }
You would adapt this to YAML if not using Terraform, and update the backend services to match Airbyte 1.7+ (
airbyte-server-svc
and
airbyte-connector-builder-server-svc
) as shown in the Helm-based examples [[Forum Post: Kubernetes check connection issues](https://discuss.airbyte.io/t/594)]. 3. Enable NEG for Airbyte Services If using GKE Ingress, you may need to annotate your Airbyte services with:
Copy code
cloud.google.com/neg: '{"ingress": true}'
This ensures the services are properly registered as backends for the Ingress [[Github Issue #61677](https://github.com/airbytehq/airbyte/issues/61677)]. 4. Apply the Ingress and Service Changes Deploy your updated Ingress and Service resources. Note: The Airbyte documentation does not provide a full, step-by-step GKE + Google Managed SSL guide, but the above approach is based on community-validated patterns. You may need to adapt the example to your specific Airbyte version and GKE setup. If you encounter issues, check that: - The Ingress and services are in the same namespace. - The Google-managed certificate is in the "Active" state. - The DNS for your domain points to the Ingress IP. If you need more detailed, official instructions, you may need to consult the [GKE Ingress documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/ingress-features#pre-shared-certs) in addition to the Airbyte resources.
w
@kapa.ai Your credentials were correct, but the server failed to set a cookie. You appear to have deployed over HTTP. Make sure you have disabled secure cookies. How to disable secure cookies using helm chart for airbyte?
k
A message from kapa.ai
To disable secure cookies when deploying Airbyte with a Helm chart (for example, if you are running over HTTP and not HTTPS), you need to update your
values.yaml
file with the following configuration: For Helm chart V1:
Copy code
yaml global:   auth:     cookieSecureSetting: "false"
For Helm chart V2:
Copy code
yaml global:   auth:     security:       cookieSecureSetting: "false"
This setting ensures that Airbyte does not require secure cookies, which are only supported over HTTPS. After updating your
values.yaml
, redeploy Airbyte with your Helm chart. This change will allow you to log in when running Airbyte over HTTP, resolving the error message about failing to set a cookie due to secure cookies being enabled on a non-HTTPS deployment. Note: Disabling secure cookies reduces security, as cookies can be transmitted over non-secure connections. Only use this setting if HTTPS is not available [[Cookie Security Settings](https://docs.airbyte.com/platform/deploying-airbyte/integrations/authentication#cookie-security-settings)]. These changes will take effect the next time you deploy Airbyte using your updated
values.yaml
file.
w
@kapa.ai How to find helm chart version?
k
A message from kapa.ai
To find the Helm chart version of your Airbyte deployment, run the following command:
Copy code
helm list -n <NAMESPACE>
Replace
<NAMESPACE>
with the namespace where Airbyte is deployed (commonly
airbyte
). The output will show a column named
CHART
, which indicates the Helm chart version currently in use for each release. This method is confirmed in both Airbyte documentation and community discussions [[Upgrading Airbyte](https://docs.airbyte.com/platform/1.7/operator-guides/upgrading-airbyte)]. For example, the output might look like:
Copy code
NAME     NAMESPACE  REVISION  UPDATED                  STATUS   CHART           APP VERSION airbyte  airbyte    1         2023-06-01 12:00:00      deployed airbyte-1.7.1  1.7.1
Here,
airbyte-1.7.1
is the Helm chart version.