Skip to content

Instantly share code, notes, and snippets.

View mr-pascal's full-sized avatar

Pascal mr-pascal

View GitHub Profile
apiVersion: ENC[AES256_GCM,data:NDg=,iv:AtIzan6KdLFTDH4e66x2knZauAol8M9skBZQNNTjUBQ=,tag:rMjo75DgZhMTCjCJlm3Vkg==,type:str]
kind: ENC[AES256_GCM,data:pMGuuL68,iv:jgrhptXN9O+JaSYdm6UkIZFekEphIUGlTLngSP/pSgg=,tag:QkG533nyNZ7vpopkbamwOw==,type:str]
metadata:
name: ENC[AES256_GCM,data:Nd24qRgzvmjL,iv:Od4z+aADAkEhLNmV/58T8Lv3NwI54pNR0ec8R6FA+2I=,tag:e36dP6ruAkGPEYDIJue3ww==,type:str]
type: ENC[AES256_GCM,data:5ATCTdz5,iv:dZNfAI3oeRFATFL3KCJ73Lat1K030bwFefmAV97O5rc=,tag:hn/73kuwoA1QoPUj/rTL+Q==,type:str]
data:
privateKey: ENC[AES256_GCM,data:CoWaOD3SqyVy1hBVqxfO,iv:kJOB4xLX2k0yaVuidLha+RCWzUMp4r0hM+V/fTjBPqY=,tag:nLLAS3cdsJOSUcaybLNr6g==,type:str]
sops:
kms: []
gcp_kms:
apiVersion: v1
kind: Secret
metadata:
name: my-secret
type: Opaque
data:
privateKey: my_funny_secret
gcloud kms keyrings create sops-demo --location global
gcloud kms keys create my-encryption-key --location global --keyring sops-demo --purpose encryption
terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "4.5.0"
}
}
}
provider "google" {}
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-cm
namespace: argocd
labels:
app.kubernetes.io/name: argocd-cm
app.kubernetes.io/part-of: argocd
data:
repositories: |
apiVersion: v1
kind: Secret
metadata:
name: my-deploy-secret
namespace: argocd
type: Opaque
data:
privateKey: LS0tLS1CRU...
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: argocd-app
namespace: argocd
spec:
destination:
namespace: default
server: https://kubernetes.default.svc
project: default
apiVersion: v1
kind: Service
metadata:
labels:
app.kubernetes.io/component: server
app.kubernetes.io/name: argocd-server
app.kubernetes.io/part-of: argocd
name: argocd-server-nodeport
namespace: argocd
spec:
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: argocd-app
namespace: argocd
spec:
destination:
namespace: default
server: https://kubernetes.default.svc
project: default
#!/bin/bash
echo "**** Begin installing k3s"
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.19.5+k3s1 K3S_KUBECONFIG_MODE="644" sh -
echo "**** End installing k3s"