This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
expose: | |
type: clusterIP | |
tls: | |
auto: | |
commonName: "tls-harbor-secret" | |
externalURL: https://registry.example.com | |
persistence: | |
enabled: true | |
resourcePolicy: "keep" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: harbor-registry-pvc | |
spec: | |
accessModes: [ReadWriteOnce] | |
resources: { requests: { storage: 160Gi } } | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | |
}, | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: atlantis | |
labels: | |
app: atlantis | |
spec: | |
selector: | |
matchLabels: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: atlantis-kubeconf-pvc | |
spec: | |
accessModes: | |
- ReadWriteMany | |
storageClassName: "" | |
resources: |
NewerOlder