Skip to content

Instantly share code, notes, and snippets.

View glendmaatita's full-sized avatar

Glend Maatita glendmaatita

View GitHub Profile
@glendmaatita
glendmaatita / values.yaml
Created January 29, 2025 12:55
Harbor Helm Values
expose:
type: clusterIP
tls:
auto:
commonName: "tls-harbor-secret"
externalURL: https://registry.example.com
persistence:
enabled: true
resourcePolicy: "keep"
@glendmaatita
glendmaatita / volume.yaml
Created January 29, 2025 12:50
Harbor Volume
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: harbor-registry-pvc
spec:
accessModes: [ReadWriteOnce]
resources: { requests: { storage: 160Gi } }
---
@glendmaatita
glendmaatita / Dockerfile
Created July 10, 2024 07:09
Vagrant Docker
FROM ubuntu:22.04
# Install OpenSSH server
RUN apt-get update && \
apt-get install -y openssh-server && \
mkdir /var/run/sshd && \
echo 'root:root' | chpasswd && \
sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config && \
sed -i 's/#PermitRootLogin/PermitRootLogin/' /etc/ssh/sshd_config && \
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config
@glendmaatita
glendmaatita / playbook.yaml
Created July 10, 2024 07:03
Vagrant Ansible
---
- name: Install Docker on Ubuntu
hosts: all
become: yes
tasks:
- name: Update apt package index
ansible.builtin.apt:
update_cache: yes
cache_valid_time: 3600 # Cache valid for 1 hour to avoid repeated updates
@glendmaatita
glendmaatita / index.ts
Created June 23, 2024 05:46
Pulumi Getting Started
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
// Create an AWS S3 bucket
const bucket = new aws.s3.Bucket("my-bucket", {
website: {
indexDocument: "index.html",
},
});
@glendmaatita
glendmaatita / ingress.yml
Created June 12, 2024 09:22
Vault Ingress
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: vault
annotations:
kubernetes.io/ingress.class: nginx
cert-manager.io/cluster-issuer: letsencrypt-issuer
spec:
rules:
@glendmaatita
glendmaatita / gcs.tf
Created June 12, 2024 09:06
Vault Bucket Terraform
# https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/storage_bucket
resource "google_storage_bucket" "my-vault-bucket" {
name = "my-vault-bucket"
location = "US-CENTRAL1"
storage_class = "STANDARD"
uniform_bucket_level_access = false
lifecycle_rule {
condition {
@glendmaatita
glendmaatita / values.yaml
Created June 12, 2024 09:02
Vault Values
server:
extraEnvironmentVars:
GOOGLE_REGION: US-CENTRAL1
GOOGLE_PROJECT: my-project
GOOGLE_APPLICATION_CREDENTIALS: /vault/userconfig/vault-config/vault-sa.json
extraVolumes:
- type: secret
name: vault-config
path: null
@glendmaatita
glendmaatita / deployment.yaml
Last active June 11, 2024 06:52
Atlantis Deployment
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: atlantis
labels:
app: atlantis
spec:
selector:
matchLabels:
@glendmaatita
glendmaatita / volume.yml
Last active June 11, 2024 06:50
Atlantis Volume
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: atlantis-kubeconf-pvc
spec:
accessModes:
- ReadWriteMany
storageClassName: ""
resources: