Skip to content

Instantly share code, notes, and snippets.

View wordpress-istiogw-example.yaml
apiVersion: networking.istio.io/v1beta1
kind: Gateway
metadata:
name: wordpressgateway
namespace: wordpress
spec:
selector:
istio: wordpressgateway
servers:
- hosts:
@jonchen727
jonchen727 / redis-service.yaml
Created Jun 9, 2022
An example redis service with Istio required fields
View redis-service.yaml
apiVersion: v1
kind: Service
metadata:
labels:
app: redis
version: "6.0"
name: redis
namespace: wordpress
spec:
ports:
@jonchen727
jonchen727 / redis-deployment.yaml
Last active Jun 9, 2022
An example redis deployment with required Istio fields
View redis-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: redis
version: "6.0"
name: redis
namespace: wordpress
spec:
replicas: 1
@jonchen727
jonchen727 / envoy_dash.json
Created Jun 8, 2022
Grafana Dashboard for Enphase Envoy Monitoring
View envoy_dash.json
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
@jonchen727
jonchen727 / envoyproductiontelegraf.conf
Created Jun 7, 2022
Telegraf Config for Envoy Production
View envoyproductiontelegraf.conf
# Global tags can be specified here in key="value" format.
[global_tags]
# Configuration for telegraf agent
[agent]
interval = "5s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "1s"
@jonchen727
jonchen727 / envoymoduletelegraf.conf
Created Jun 7, 2022
Telegraf Configuration to Pull Enphase Module Data
View envoymoduletelegraf.conf
# Global tags can be specified here in key="value" format.
[global_tags]
# Configuration for telegraf agent
[agent]
interval = "60s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "0s"
@jonchen727
jonchen727 / managed-asm.yaml
Created May 19, 2022
GKE Autopilot ASM Manifests
View managed-asm.yaml
apiVersion: v1
kind: Namespace
metadata:
labels:
kubernetes.io/metadata.name: istio-system
topology.istio.io/network: [Cluster VPC Network Name]
name: istio-system
---
apiVersion: mesh.cloud.google.com/v1beta1
kind: ControlPlaneRevision
@jonchen727
jonchen727 / gateway-namespace.yaml
Last active May 19, 2022
GKE Autopilot ASM and Ingress Gateway Manifests
View gateway-namespace.yaml
apiVersion: v1
kind: Namespace
metadata:
name: asm-gateway
annotations:
mesh.cloud.google.com/proxy: '{"managed":"true"}'
labels:
istio.io/rev: asm-managed-rapid
View vsphere_ubuntu_terraform.tf
provider "vsphere" {
vsphere_server = var.vsphere_server
user = var.vsphere_user
password = var.vsphere_password
# If you have a self-signed cert
allow_unverified_ssl = true
}
data "vsphere_datacenter" "dc" {
@jonchen727
jonchen727 / vsphere_ubuntu.pkc.hcl
Created Jul 21, 2021
deploy ubuntu 20.04 to vsphere and prep for terraform static ip assignment
View vsphere_ubuntu.pkc.hcl
source “vsphere-iso” “this” {
vcenter_server = var.vsphere_server
username = var.vsphere_user
password = var.vsphere_password
datacenter = var.datacenter
cluster = var.cluster
insecure_connection = true
vm_name = “tf-ubuntu-server-20.04
guest_os_type = “ubuntu64Guest”