Skip to content

Instantly share code, notes, and snippets.

- apiVersion: hive.openshift.io/v1
kind: ClusterDeployment
metadata:
creationTimestamp: null
labels:
hive.openshift.io/hiveutil-created: "true"
name: test
spec:
baseDomain: new-installer.openshift.com
certificateBundles:
@kahootali
kahootali / sealed-secrets-controller.yaml
Created March 6, 2020 11:57
Gist containing Vanilla manifest to deploy Sealed Secrets Controller
apiVersion: v1
kind: ServiceAccount
metadata:
annotations: {}
labels:
name: sealed-secrets-controller
name: sealed-secrets-controller
---
apiVersion: apps/v1
kind: Deployment
apiVersion: v1
kind: Secret
metadata:
name: inventory-postgresql-secret
namespace: NAMESPACE_NAME
labels:
app: postgres
category: service
stringData:
POSTGRES_DB: inventory
@kahootali
kahootali / eks-main.tf
Last active September 13, 2021 11:22
File containing manifest to create an AWS EKS cluster
terraform {
required_version = ">= 0.12.7"
}
locals{
vpc_id = "vpc-1234ab"
region = "eu-west-1"
cluster_name = "dev-eks-cluster"
subnets = ["subnet-1234", "subnet-1235", "subnet-1236"]
cluster_enabled_log_types = ["api", "audit", "authenticator", "controllerManager", "scheduler"]
@kahootali
kahootali / counter-daemonset.yaml
Last active April 19, 2023 20:55
Kubernetes daemonset manifest to deploy counter app
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: counter-app
spec:
selector:
matchLabels:
app: counter
template:
metadata:
spec:
tolerations:
- effect: NoSchedule
operator: Exists
taints:
- effect: NoSchedule
key: node-role.kubernetes.io/master
@kahootali
kahootali / counter-statefulset.yaml
Last active September 21, 2021 17:19
Kubernetes statefulset manifest to deploy counter app
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: counter
spec:
serviceName: "counter-app"
selector:
matchLabels:
app: counter
replicas: 1
@kahootali
kahootali / counter-deployment.yaml
Last active September 21, 2021 17:18
Kubernetes deployment manifest to deploy counter app
apiVersion: apps/v1
kind: Deployment
metadata:
name: counter
spec:
replicas: 1
selector:
matchLabels:
app: counter
template: