Resource Definitions

38 examples found

Driver

Capability

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 Config S3
Humanitec manages the state file for the local backend. This is the backend that is used if no backend is specified. (...)

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. (...)

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 examlle 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. (...)

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

Volume Pvc Volume
This example illustrates how a Workload can use persistent storage service through the Kubernetes volumes system. It uses the volume-pvc Driver to create a PersistentVolume for your application. If you have special requirements for your PersistentVolume, you can also use the Template Driver to create it as shown in this other example.

Volumes Static Provisioning

Template Driver Volume Workload
This example will let participating Workloads share a common persistent storage service through the Kubernetes volumes system. (...)
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