February 4, 2022
FAQs on the Configuration of Kubernetes and Automic Automation When Moving to AAKE
Written by: Broadcom Software Academy
Key Takeaways
|
|
Here are the answers to some frequently asked questions about the configuration of Kubernetes and Automic Automation when moving to AAKE.
Question |
Answer |
Preparing for the AAKE deployment |
|
How do I know how many replicas I need for my AAKE deployment? |
The same sizing guidelines apply for AAKE and on-prem, and the number of processes required for daily work should be configured via values.yaml before deployment: spec: awiReplicas: 2 |
How do I request and limit resources for each AAKE pod/replica within my Kubernetes cluster? |
You can define that in the values.yaml file. This is also described in the Sizing guidelines: |
Do I need the Automic Automation Helm plugin? |
Yes, the plugin requires Helm version 3 and is used to monitor the progress of the deployment or upgrade. It is also mandatory when upgrading to a newer AAKE version, since it pauses the installation until the DB has been backed up. Since not all commands will work from a Windows CLI, you should use the plugin with a Linux CLI. |
How do I access the Automic server from outside the Kubernetes cluster? |
AWI, JCP WS and JCP REST require HTTP(S) endpoints that are exposed through an Ingress (fulfilled by an Ingress Controller/HTTP(S) Load Balancer). CPs need to be exposed via a TCP Load Balancer/TCP Proxy. |
How do I configure the Ingress? |
The AAKE install operator can automatically configure ingresses for NGINX. Make sure enable: true under the ingress: section in values.yaml. |
Do I need certificates for AAKE? |
Yes, the TLS agents will perform the TLS handshake with the HTTPS Load Balancer before connecting to the JCPs inside the cluster. A private key and certificate need to be configured at the Ingress level, but no additional configuration is required for the JCP, as is the case for on-prem installations. |
How can I configure my own Automic system name? |
Persistent configuration (like system name for server and AWI) should be set via environment variables in values.yaml: environment: AUTOMIC_GLOBAL_SYSTEM: AUTOMIC AUTOMIC_SYSTEM_NAME: AUTOMIC |
How do I enable SAML for AAKE? |
Persistent configuration (like enabling SSO) should be set via environment variables in values.yaml: environment: AUTOMIC_SSO_SAML_ENABLED: true |
Can I use only one tablespace for my (managed) DB? |
For managed cloud DB services you may not have the ability to use different tablespace names, which is why Automic Automation V21 supports configuring both names to the same if needed. |
How do I create a DB secret? |
kubectl create secret generic ae-db \ --from-literal=host=aut-db.eu-central-1.com \ --from-literal=vendor=postgres \ --from-literal=port='5432' \ --from-literal=user=oab \ --from-literal=db=ae \ --from-literal=password=automic \ --from-literal=data-tablespace-name=pg_default \ --from-literal=index-tablespace-name=pg_default \ --from-literal=additional-parameters="connect_timeout=10 client_encoding=LATIN9" |
How do I create a secret for the client 0 user? |
kubectl create secret generic client0-user \ --from-literal=client='0' \ --from-literal=user='ADMIN' \ --from-literal=department='ADMIN' \ --from-literal=password='admin' |
How do I create a TLS secret? |
If you want to use the automatically generated Ingresses that are configured for an NGINX Controller, a TLS secret containing the private key and certificate is required. kubectl create secret tls certificate-tls-secret --key private_key.pem --cert certificate.pem |
Can I use ZDU to upgrade from v12.3 to AAKE v21? |
No, you must not use ZDU in AAKE-context. There will be a downtime when switching from an on-prem installation to the AAKE deployment. NB: Since ZDU isn’t technically prevented by AAKE V21, the admin has to be aware of this fact |
Will the Automic Proxy work with AAKE? |
Yes, with v21, the Proxy Client connects to the JCP via TLS. The TLS agents can then connect to the Proxy Server. The communication between the 2 Proxy components has not changed. |
Can I have an AAKE deployment without CPs? |
By default, the CP replicas are set to 0 in the values.yaml file. CPs are only required if at least one of the two cases is true:
|
How can I connect my old/non-TLS agents (<V21.0) to AAKE 21.0? |
This can be done via the following two ways:
|
What are some best practices when migrating from on-prem to the container-based deployment? |
|
What about Analytics when deploying AAKE? |
The way how Analytics is handled depends on your installation scenario:
|
Are there any special things to consider when migrating from an on-prem to a managed DB? |
In versions prior to v21, minimum 2 tablespaces (ae_data, ae_index) were required for an installation. Managed databases usually do not allow users to create tablespaces, so the default DB instance tablespace has to be used. This is possible with v21, but you need to prepare for this when doing the DB migration. Cloud providers might offer migration services and tools, for Google Cloud this guide describes how to migrate to a Cloud SQL PostgreSQL DB https://cloud.google.com/database-migration/docs/postgres/quickstart |
Are TLS secured database connections supported? |
For standard AE with PostgreSQL yes, see https://docs.automic.com/documentation/webhelp/english/AA/21.0/DOCU/21.0/Automic%20Automation%20Guides/Content/Installation_Common/PreparationSteps/PrepareAEDB_PostgreSQL.htm#link9 For AAKE this is not (yet) supported |
Are sticky sessions required to access AWI via Load Balancer? |
Yes, this is included in the documentation and the configuration is Cloud provider specific. |
On a running AAKE system |
|
How do I set logging / trace levels for AE? |
Via the ae-properties configmap. Setting this will restart all the AE pods. data: AUTOMIC_TRACE_TRC03: '1' |
How do I change the default AWI configuration? |
Via the awi-properties configmap. Settings that were previously in uc4config.xml, colors or configuration properties can be modified. The AWI pods will restart automatically. data: |
How do we get customer AAKE logs now that we no longer create standard log files? |
Customer already knows how to get these, but normally log management will be in place, otherwise kubectl logs <pod name> can be used. |
How to do a COLD START? |
Via the ae-properties configmap, this will restart all the AE pods. data: |
How to do a full system restart? |
A Google search for “How do I restart all pods” will provide multiple answers, including kubectl -n <namespace> rollout restart deploy |
Cloud Provider/Platform specifics |
|
Do we have any instructions / best practices on how to deploy AAKE to AWS? |
|
Does AAKE work on AWS Fargate? |
Yes, see above link. |
Do we have any instructions / best practices on how to deploy AAKE to Azure? |
|
Do we have any instructions / best practices on how to deploy AAKE to GCP? |
Yes: |
Does AAKE work with OpenShift? |
Although OpenShift is based on Kubernetes, it provides an additional PaaS management layer that has additional requirements. In theory, AAKE should work, however we consider official support for OpenShift out of scope as we focus on core Kubernetes, either self managed or managed Kubernetes services by the leading cloud providers. |
Does AAKE work with Docker Swarm (or Mesos + Marathon)? |
Kubernetes is the leading container orchestration platform that sees widespread adoption. As such we standardize on Kubernetes and the Kubernetes ecosystem. We currently have no plans to support any of the alternative container orchestration platforms. |
Does AAKE work on a Rancher Kubernetes cluster? |
Since the Rancher Kubernetes Engine (RKE) uses the basic Kubernetes distribution, there is no reason why it can’t work. But any additional services required for cluster operations are not in scope of AAKE support and are the responsibility of the customer. |
Is Google’s Cloud SQL Auth Proxy supported with AAKE? |
No, at the moment it is not possible to configure the Cloud SQL Proxy to run as a sidecar container with AAKE. In order to use AAKE in GKE with a Cloud DB, the database instance has to be configured to use a private IP address. |
General questions |
|
What databases does AAKE support? |
PostgreSQL and Oracle. This includes managed DB offerings from the leading cloud providers. Refer to compatibility matrix for exact versions: |
Why doesn’t AAKE support MS SQL? |
In fact, when running the AE on Linux, this was never supported. Only when running AE on Windows, MS SQL is supported as database. We are monitoring demand for MS SQL in context of AAKE and “regular” AE deployments. If there’s enough demand this may change in a future version. |
Do we support Istio as a service mesh? |
The number of tools and services that can be used with Kubernetes is countless and we can’t possibly try them all out. This does not mean they won’t work, but it’s up to the customer to set them up for AAKE. |
Can you recommend any tools for log management? |
Cloud providers often have these in place, but so far we’ve heard customers using tools like Kibana or Splunk. |
What are some beginner friendly open-source tools to try out with AAKE while learning about Kubernetes? |
Microk8s https://microk8s.io/ Lens https://k8slens.dev/ |
Can I use a local/private repository instead of GCR to deploy AAKE? |
Yes, it is possible to download the images before the deployment using docker pull or tools like Skopeo. The values.yaml file needs to be adjusted to point to the new repository and a new pull secret with the credentials for this repo has to be created. |
How can I use Kubernetes autoscaling (horizontal pod autoscaler) with AAKE? |
This is a good place to start (generic): https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/ The managed K8s services from the leading cloud providers, may provide their own implementation: https://cloud.google.com/kubernetes-engine/docs/how-to/horizontal-pod-autoscaling Use HPA in combination with Prometheus for scaling using custom metrics: https://towardsdatascience.com/kubernetes-hpa-with-custom-metrics-from-prometheus-9ffc201991e Automic provides custom metrics for use with Prometheus: |
Which cluster permissions are required when deploying AAKE? |
Verbs get, list, watch, create, update, patch, delete Api Groups '' Verbs get, list, watch, create, update, patch, delete Api Groups apps, extensions, batch, networking.k8s.io, ''
Resources automic-automations Verbs get, list, watch, patch Api Groups broadcom.com |
Troubleshooting |
|
Why can’t DBLoad connect to the DB during AAKE deployment? |
1. The address/host where the DB can be reached has one of these formats, depending if it is running within the Kubernetes cluster or not and needs to be configured in the same db secret that is configured in values.yaml
host: <db-server-service-name>.<namespace>.svc.cluster.local
host: <db-server-domain-or-ip-address> 2. The DB port is configured in the db secret and is not blocked by a Firewall for example. 3. There is a DNS service running in the cluster (kube dns). |
My NGINX ingress controller has following error: “ingress does not contain a valid IngressClass", what is causing this? |
On Aug 24, NGINX v1.0.0 was released, see release notes https://github.com/kubernetes/ingress-nginx/releases/tag/controller-v1.0.0 This release includes a breaking change, where an IngressClass must be specified on your ingress definitions. Add following to the annotations: section of your ingress yaml file(s) kubernetes.io/ingress.class: "nginx" |
Why do I get this error when trying to create the Automic image pull secret? |
If you create the secret using Windows PowerShell, the double quotes in the command have to be replaced by single quotes. For example: PS C:\Users\ob685245> kubectl create secret docker-registry test-automic-image-pull-secret --docker-server=gcr.io --docker-username=_json_key --docker-password='$(cat ./automic-image-pull-secret.json)' --docker-email=broadcom-com@esd-automic-saas.iam.gserviceaccount.com |
Other posts you might be interested in
Explore the Catalog
Blog
December 10, 2024
Unlocking the Power of Data Pipelines in Insurance: Maximize Value, Minimize Risk
Read More
Blog
December 3, 2024
Unlocking the Untapped Potential of Data Pipelines in Financial Services
Read More
Blog
November 18, 2024
Optimizing Resources With Airflow: A Guide to Workload Optimization and SLA Management
Read More
Blog
November 12, 2024
Introducing AutoSys v24: Enhanced Features and New Product Lifecycle for a Modern Automation Experience
Read More
Blog
November 6, 2024
Understanding Broadcom’s Placement as a Leader in 2024 Gartner® Magic Quadrant™ for Service Orchestration and Automation Platforms (SOAP)
Read More
Blog
November 1, 2024
Automic Automation: The Key to Unlocking Data Pipeline Accuracy
Read More
Blog
October 9, 2024
Building Efficient Data Pipelines with Automic Automation
Read More
Blog
October 1, 2024
Seven Ways AAI Can Accelerate a Scheduler Migration
Read More
Blog
September 26, 2024