Skip to content

Instantly share code, notes, and snippets.

View stevendborrelli's full-sized avatar

Steven Borrelli stevendborrelli

View GitHub Profile
@stevendborrelli
stevendborrelli / bluesky.md
Last active November 21, 2024 05:08
Bluesky Starter Packs
@stevendborrelli
stevendborrelli / crossplane-1.14.md
Last active January 8, 2024 08:29
Crossplane 1.14 Overview

A Tour of Crossplane 1.14

Crossplane is an Open-Source project that enables management of almost anything in the Cloud via the Kubernetes API.

Crossplane version 1.14 released November 1, 2023, is one of the most consequential releases in the project's history.

While Composition Functions and Provider performance improvements are headline features, there are substantial updates across the project: from a focus on developer and operator experience, Upbound's code donation to the CNCF, to API maturation.

This Document was updated November 7, 2023.

Provider crossplane/provider-azure:v0.18.1

kubectl get secrets -n crossplane-system 
NAME                  TYPE                                  DATA   AGE
default-token-mfplc   kubernetes.io/service-account-token   3      34m
example-psql          connection.crossplane.io/v1alpha1     4      4m10s
package topic
import (
"fmt"
"testing"
"github.com/crossplane-contrib/provider-kafka/apis/topic/v1alpha1"
"github.com/google/go-cmp/cmp"
)
@stevendborrelli
stevendborrelli / kustomization.yaml
Created September 10, 2021 03:15
Basic Crossplane azure examples
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- rg.yaml
- network.yaml
- subnet.yaml
- postgres.yaml
- pg-config.yaml

Converge

Converge is a configuration management tool that makes it easy to manage servers, laptops and other devices.

  • Easy to install and run.
  • Includes a powerful graph engine that automatically generates dependencies and runs tasks in parallel.
  • API-first. All communication runs through grpc.
kind: DaemonSet
metadata:
name: traefik-ingress-controller
labels:
k8s-app: traefik-ingress-lb
spec:
template:
metadata:
labels:
k8s-app: traefik-ingress-lb
variable name {
default = "terraform"
description = "Name of the virtual network"
}
variable location {
default = "Central US"
description = "Geographic location of the virtual network"
}
This file has been truncated, but you can view the full file.
TF_LOG=1 terraform apply 2>&1 | tee terraform.out
2016/05/10 13:27:39 [WARN] Invalid log level: "1". Defaulting to level: TRACE. Valid levels are: [TRACE DEBUG INFO WARN ERROR]
2016/05/10 13:27:39 [INFO] Terraform version: 0.6.15 0c5c54e7b6a59d77e89ce24057509503639d8d3d
2016/05/10 13:27:39 [DEBUG] Detected home directory from env var: /Users/steve
2016/05/10 13:27:39 [DEBUG] Discovered plugin: atlas = /Users/steve/terraform/terraform-provider-atlas
2016/05/10 13:27:39 [DEBUG] Discovered plugin: aws = /Users/steve/terraform/terraform-provider-aws
2016/05/10 13:27:39 [DEBUG] Discovered plugin: azure = /Users/steve/terraform/terraform-provider-azure
2016/05/10 13:27:39 [DEBUG] Discovered plugin: azurerm = /Users/steve/terraform/terraform-provider-azurerm
2016/05/10 13:27:39 [DEBUG] Discovered plugin: chef = /Users/steve/terraform/terraform-provider-chef
@stevendborrelli
stevendborrelli / consul.md
Last active December 20, 2015 22:01
Consul

###How we use consul We're big fans of consul at aster.is. How do we use it?

####Service discovery We feel that service discovery is a fundamental building block upon which we can build more flexible systems. With consul, service discovery is part of every node.

Consul makes it easy to register services that run on a server. For example by adding a file like zookeeper.json to the consul configuration directory, we can register static services across the cluster. This means that any node can just connect to zookeeper.service.consul instead of a hardcoded list of ips. We use this pattern quite a bit to reduce the amount of automation code we need to write.

In addition to the API, consul exposes service discovery available via DNS so that clients don't need to have additional libraires installed to find components.