Testing
This commit is contained in:
1 parent
993d648f2d
commit
7d0609feb1
10 files changed
+82
-66
No files matched your search
@@ -0,0 +1,6 @@
|
||||
apiVersion: v2
|
||||
name: ingress
|
||||
description: A Helm chart for Kubernetes
|
||||
type: application
|
||||
version: 0.1.0
|
||||
appVersion: "1.16.0"
|
||||
@@ -0,0 +1,24 @@
|
||||
---
|
||||
kind: Deployment
|
||||
apiVersion: apps/v1
|
||||
metadata:
|
||||
name: dummy-app-2
|
||||
namespace: "{{ .Release.Namespace }}"
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: dummy
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: dummy
|
||||
spec:
|
||||
containers:
|
||||
- name: name
|
||||
image: nginxdemos/hello
|
||||
resources:
|
||||
limits:
|
||||
memory: 1Gi
|
||||
ports:
|
||||
- containerPort: 80
|
||||
Whitespace-only changes.
@@ -2,4 +2,4 @@ apiVersion: v2
|
||||
name: cluster
|
||||
description: An infrastructure collection of manifests for homelab
|
||||
type: application
|
||||
version: 0.1.4
|
||||
version: 0.1.7
|
||||
@@ -1,14 +0,0 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: argo-repo-main
|
||||
namespace: "{{ .Values.ns.argocd }}"
|
||||
labels:
|
||||
argocd.argoproj.io/secret-type: repository
|
||||
annotations:
|
||||
link.argocd.argoproj.io/external-link: "https://github.com/{{ .Values.gitops.repo }}"
|
||||
stringData:
|
||||
type: git
|
||||
url: "git@github.com:{{ .Values.gitops.repo }}.git"
|
||||
sshPrivateKey: {{ .Values.gitops.sshkey | quote }}
|
||||
@@ -13,7 +13,7 @@ ns:
|
||||
argocd: "change-me"
|
||||
|
||||
gitops:
|
||||
commit: "v2"
|
||||
revision: "v2"
|
||||
repo: "asosnovsky/homelab"
|
||||
sshkey: ""
|
||||
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
# This is the values.yaml I used on my k3s raspberrypi cluster
|
||||
|
||||
# if you have a problem with serviceWeb Pods not building you might need to checkout this issue:
|
||||
# https://github.com/MoJo2600/pihole-kubernetes/issues/230
|
||||
|
||||
ingress:
|
||||
enabled: true
|
||||
|
||||
persistentVolumeClaim:
|
||||
enabled: true
|
||||
|
||||
serviceWeb:
|
||||
loadBalancerIP: 192.168.178.201
|
||||
annotations:
|
||||
metallb.universe.tf/allow-shared-ip: pihole-svc
|
||||
type: LoadBalancer
|
||||
|
||||
serviceDns:
|
||||
loadBalancerIP: 192.168.178.201
|
||||
annotations:
|
||||
metallb.universe.tf/allow-shared-ip: pihole-svc
|
||||
type: LoadBalancer
|
||||
|
||||
serviceDhcp:
|
||||
loadBalancerIP: 192.168.178.201
|
||||
annotations:
|
||||
metallb.universe.tf/allow-shared-ip: pihole-svc
|
||||
type: LoadBalancer
|
||||
|
||||
podDnsConfig:
|
||||
enabled: true
|
||||
policy: "None"
|
||||
nameservers:
|
||||
- 127.0.0.1
|
||||
- 8.8.8.8
|
||||
|
||||
#! use an existing secret in a prod env
|
||||
adminPassword: "0n4BQ2l7Dbu3ViYgd4wu"
|
||||
|
||||
resources:
|
||||
limits:
|
||||
cpu: 200m
|
||||
memory: 256Mi
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
|
||||
extraEnvVars: {
|
||||
DNSMASQ_USER: "root"
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
resource "argocd_repository" "homelab" {
|
||||
name = "homelab"
|
||||
repo = "git@github.com:asosnovsky/homelab.git"
|
||||
username = "git"
|
||||
ssh_private_key = var.ssh_key
|
||||
insecure = true
|
||||
}
|
||||
|
||||
resource "argocd_application_set" "apps" {
|
||||
metadata {
|
||||
name = "apps"
|
||||
}
|
||||
spec {
|
||||
generator {
|
||||
git {
|
||||
repo_url = argocd_repository.homelab.repo
|
||||
revision = "v2"
|
||||
file {
|
||||
path = "charts/apps/*"
|
||||
}
|
||||
}
|
||||
}
|
||||
template {
|
||||
metadata {
|
||||
name = "apps-{{path.basename}}"
|
||||
}
|
||||
|
||||
spec {
|
||||
source {
|
||||
repo_url = argocd_repository.homelab.repo
|
||||
target_revision = "v2"
|
||||
path = "{{path}}"
|
||||
}
|
||||
|
||||
destination {
|
||||
server = "https://kubernetes.default.svc"
|
||||
namespace = "{{path.basename}}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -24,6 +24,10 @@ terraform {
|
||||
source = "cloudflare/cloudflare"
|
||||
version = "5.2.0"
|
||||
}
|
||||
argocd = {
|
||||
source = "argoproj-labs/argocd"
|
||||
version = "7.5.2"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,3 +43,6 @@ provider "http" {}
|
||||
provider "cloudflare" {
|
||||
api_token = var.cloudflare.api_token
|
||||
}
|
||||
provider "argocd" {
|
||||
core = true
|
||||
}
|
||||
Reference in new issue
Block a user