Resource Definitions

44 examples found

Driver

Capability

Flavor

Resource Type

The examples below illustrate the use of Resource Definitions to realize a particular capability.


Add Sidecar

Template Driver Workload
The workload Resource Type can be used to make updates to resources before they are deployed into the cluster. In this example, a Resource Definition implementing the workload Resource Type is used to inject the Open Telemetry agent as a sidecar into every workload. In addition to adding the sidecar, it also adds an environment variable called OTEL_EXPORTER_OTLP_ENDPOINT to each container running in the workload. (...)

Affinity

Template Driver Workload
This section contains example Resource Definitions using the Template Driver for the affinity of Kubernetes Pods. (...)

Agent

K8s Cluster Aks K8s cluster
This section contains example Resource Definitions using the Humanitec Agent for connecting to AKS clusters. (...)

Agent

K8s Cluster Eks K8s cluster
This section contains example Resource Definitions using the Humanitec Agent for connecting to EKS clusters. (...)

Agent

K8s Cluster Gke K8s cluster
This section contains example Resource Definitions using the Humanitec Agent for connecting to GKE clusters. (...)

Annotations

Template Driver Workload
This section shows how to use the Template Driver for managing annotations on Kubernetes objects. (...)

Azure Blob

Terraform Driver Azure blob
Use the Terraform Driver to provision Azure Blob storage resources. (...)

Backends

Terraform Driver Gitlab S3 Config
GitLab implements the Terraform HTTP backend . In order to use the Terraform backend in GitLab, the following is needed: (...)

Backends

Terraform Driver S3 S3 Config
The Backend is configured using the backend block. A config resource holds the key configuration for the backend. (...)

Co Provision

Terraform Driver Aws policy S3
This section contains an example of Resource Definitions using the Terraform Driver and illustrating the co-provisioning concept. (...)

Credentials

K8s Cluster Aks K8s cluster
This section contains example Resource Definitions using static credentials for connecting to AKS clusters. (...)

Credentials

K8s Cluster Eks K8s cluster
This section contains example Resource Definitions using static credentials for connecting to EKS clusters. (...)

Credentials

K8s Cluster Git K8s cluster
This section contains example Resource Definitions using static credentials for connecting to a Git repository in ( GitOps mode ). (...)

Credentials

K8s Cluster Gke K8s cluster
This section contains example Resource Definitions using static credentials for connecting to GKE clusters. (...)

Credentials

K8s Cluster K8s cluster
This section contains example Resource Definitions using static credentials for connecting to generic Kubernetes clusters. (...)

Credentials

Terraform Driver Config S3 Azure blob Gcs
Different Terraform providers have different ways of being configured. Generally, there are 3 ways that providers can be configured: (...)

Custom Git Config

Terraform Driver S3
This section contains an example of providing a custom git-config to be used by Terraform when accessing modules sources from private git repositories. (...)

Endpoint

Template Driver Endpoint
This section contains example Resource Definitions using the Template Driver for creating a endpoint resource. (...)

External Dns Cert Manager

Ingress DNS Ingress
This section contains example Resource Definitions for using External DNS and Cert Manager by setting annotations in the Ingress (...)

Horizontal Pod Autoscaler

Hpa Horizontal pod autoscaler
This section contains a Resource Definition example for handling Kubernetes HorizontalPodAutoscaler by using the hpa Driver. If you have special requirements for your HorizontalPodAutoscaler implementation, you can see this other example using the template Driver . (...)

Horizontal Pod Autoscaler

Template Driver Horizontal pod autoscaler
This section contains a Resource Definition example for handling Kubernetes HorizontalPodAutoscaler by using the template Driver to configure your own HorizontalPodAutoscaler implementation. You can see this other example if you want to use the hpa Driver. (...)

Imagepullsecrets

Template Driver Config Workload
This section shows how to use the Template Driver for configuring cluster access to a private container image registry. (...)

Ingress

Ingress Ingress
This section contains example Resource Definitions for handling Kubernetes ingress traffic using the Ingress Driver. (...)

Ingress

Template Driver Ingress
This section contains example Resource Definitions for handling Kubernetes ingress traffic. Instead of the Driver type Ingress , we are using the Template Driver type, which allows us to render any Kubernetes YAML object. (...)

Labels

Template Driver Config K8s namespace Workload
This section shows how to use the Template Driver for managing labels on Kubernetes objects. (...)

Namespace

Echo Driver K8s namespace
This section contains example Resource Definitions using the Echo Driver for managing Kubernetes namespaces . (...)

Namespace

Template Driver K8s namespace
This section contains example Resource Definitions using the Template Driver for managing Kubernetes namespaces . (...)

Namespaced Resources

Template Driver Base env
This example shows a sample usage of the base-env Resource Type. It is one of the implicit Resource Types that always gets provisioned for a Deployment. (...)

Node Selector

Template Driver Workload
This section contains example Resource Definitions using the Template Driver for setting nodeSelectors on your Pods. (...)

Postgres

Echo Driver Postgres
This section contains example Resource Definitions using the Echo Driver for PostgreSQL. (...)

Private Git Repo

Terraform Driver Some resource type
The Terraform Driver can access Terraform definitions stored in a Git repository. In the case that this repository requires authentication, you must supply credentials to the Driver. The examples in this section show how to provide those as part of the secrets in the Resource Definition based on the Terraform Driver. (...)

Redis

Echo Driver Redis
This section contains example Resource Definitions using the Echo Driver for Redis . (...)

Resourcequota

Template Driver Base env Config
This example shows a sample usage of the base-env Resource Type. It is one of the implicit Resource Types that always gets provisioned for a Deployment. (...)

Runner

Terraform Driver K8s cluster S3
The Terraform Driver can be configured to execute the Terraform scripts as part of a Kubernetes Job execution in a target Kubernetes cluster, instead of in the Humanitec infrastructure. In this case, you must supply access data to the cluster to the Humanitec Platform Orchestrator. (...)

Runner Pod Configuration

Terraform Driver Azure blob account K8s cluster
The Terraform Driver can be configured to execute the Terraform scripts as part of a Kubernetes Job execution in a target Kubernetes cluster, instead of in the Humanitec infrastructure. In this case, you must supply access data to the cluster to the Humanitec Platform Orchestrator. (...)

Runtime

K8s Cluster Git K8s namespace K8s cluster Agent
This section contains example Resource Definitions for connecting to a Git repository to push application CRs in GitOps mode . (...)

S3

Terraform Driver S3
Use the Terraform Driver to provision Amazon S3 bucket resources. (...)

Security Context

Template Driver Workload
This section contains example Resource Definitions using the Template Driver for adding Security Context on Kubernetes Deployment . (...)

Serviceaccount

Template Driver K8s service account Workload
This section contains example Resource Definitions using the Template Driver for provisioning Kubernetes ServiceAccounts for your Workloads. (...)

Tls Cert

Template Driver Tls cert
This section contains example Resource Definitions using the Template Driver for managing TLS Certificates in your cluster. (...)

Tolerations

Template Driver Workload
This section contains example Resource Definitions using the Template Driver for managing tolerations on your Pods. (...)

Volumes

Template Driver Volume
This section contains Resource Definition examples for handling Kubernetes Volumes by using the template Driver to configure your own PersistentVolume implementation. You can see this other example if you want to use the volume-pvc Driver. (...)

Volumes

Volume Pvc Volume
This section contains Resource Definitions examples for handling Kubernetes Volumes by using the volume-pvc Driver. If you have special requirements for your PersistentVolume implementation, you can see this other example using the template Driver . (...)
This section contains example Resource Definitions using the Wildcard DNS Driver returning an externally managed DNS record for routing and ingress inside the cluster. (...)
Top