Cloud Native Digest: Terraform 1.8

KubeSphere
3 min readMay 6, 2024

Open source projects worth checking out

xlskubectl

xlskubectl integrates Google Spreadsheet with Kubernetes.

You can finally administer your cluster from the same spreadsheet that you use to track your expenses.

git-sync

git-sync is a simple command that pulls a git repository into a local directory, waits for a while, then repeats. As the remote repository changes, those changes will be synced locally. It is a perfect “sidecar” container in Kubernetes — it can pull files down from a repository so that an application can consume them.

HULL

HULL is a Helm library chart called “The incredible HULL — Helm Uniform Layer Library.” It is designed to improve Helm chart based workflows. The HULL library chart serves as a uniform layer to streamline the specification, configuration, and rendering of Helm charts. It allows Kubernetes objects and their properties to be specified transparently in the values.yaml file, eliminating the need for customized YAML template files.

Kubetail

Bash script that enables you to aggregate (tail/follow) logs from multiple pods into one stream. This is the same as running “kubectl logs -f “ but for multiple pods.

Technical recommendations

Waiting for hooks in ArgoCD

The article discusses the topic of waiting for Hooks in ArgoCD. Hooks are custom scripts or commands executed during the application deployment process to perform specific actions. However, the current version of ArgoCD lacks built-in support for waiting for Hooks, which can pose challenges during the application deployment. The article explores the importance of the waiting for Hooks feature and provides some solutions and alternative approaches to achieve similar results in ArgoCD. Overall, the article aims to raise awareness about the need for Hooks waiting functionality in ArgoCD and offers valuable insights and recommendations.

How to Generate Kubernetes Manifests With a Single Command

The article provides a guide on generating Kubernetes manifests with a single command. It explores the use of Helm and kustomize to simplify and automate the process of generating Kubernetes manifest files. The article explains how to create a Helm Chart using Helm and render it into Kubernetes manifest files with a single command. It also discusses using kustomize to manage and customize variants of Kubernetes manifest files. This approach significantly streamlines the process of generating manifest files when deploying applications in Kubernetes, improving efficiency and reducing errors. Overall, the article offers readers a straightforward and effective method for generating Kubernetes manifest files, making application deployment and management easier.

What’s new in cloud native

Terraform 1.8 Adds Provider-Defined Functions, Improves AWS, GCP, and Kubernetes Providers

HashiCorp has released version 1.8 of Terraform, their infrastructure-as-code language. The release introduces provider-defined functions. This enables the creation of custom functions within a given provider that handle computational-style tasks. Several providers, including AWS, GCP, and Kubernetes, have introduced new provider-defined functions alongside this release. Version 1.8 also introduces improvements to refactoring across resource types.

OpenTofu Launches 1.7 Release Including Long-Requested State Encryption

Features new to OpenTofu 1.7 include:

  • State Encryption, which protects sensitive state-files at rest. This feature brings industry-standard AES-GCM encryption with local passphrases and cloud integrations for key management systems such as AWS KMS, GCP KMS, OpenBao, and comes with an extensible API for future integrations.
    - Provider-defined Functions, which let providers define custom functions to be used in tofu code. This includes tofu-exclusive features enabling the authoring of dynamic custom functions in Go, or Lua code, next to a user’s tofu config files.
    - Loopable Imports, which enable the use of `for_each` in import blocks, making the importing of large amounts of infrastructure into tofu configuration much easier.
    - “Removed” blocks, which make it easy to export infrastructure from user tofu configs.

About KubeSphere

KubeSphere is an open source container platform built on top Kubernetes with applications at its core. It provides full-stack IT automated operation and streamlined DevOps workflows.

KubeSphere has been adopted by thousands of enterprises across the globe, such as Aqara, Sina, Benlai, China Taiping, Huaxia Bank, Sinopharm, WeBank, Geko Cloud, VNG Corporation and Radore. KubeSphere offers wizard interfaces and various enterprise-grade features for operation and maintenance, including Kubernetes resource management, DevOps (CI/CD), application lifecycle management, service mesh, multi-tenant management, monitoring, logging, alerting, notification, storage and network management, and GPU support. With KubeSphere, enterprises are able to quickly establish a strong and feature-rich container platform.

To stay updated, visit our official website or follow us on Twitter.

--

--

KubeSphere

KubeSphere (https://kubesphere.io) is an open source distributed operating system providing cloud native stack with Kubernetes as its kernel.