chore: bootstrap platform GitOps state
This commit is contained in:
commit
a833be1d9e
40 files changed
+733
No files matched your search
@@ -0,0 +1,26 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: argocd-server
|
||||
namespace: argocd
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
haproxy.org/backend-protocol: h2
|
||||
spec:
|
||||
ingressClassName: haproxy
|
||||
tls:
|
||||
- hosts:
|
||||
- argocd.dahyeon.us
|
||||
secretName: argocd-tls
|
||||
rules:
|
||||
- host: argocd.dahyeon.us
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: argocd-server
|
||||
port:
|
||||
name: https
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ingress.yaml
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: ClusterIssuer
|
||||
metadata:
|
||||
name: letsencrypt-prod
|
||||
spec:
|
||||
acme:
|
||||
email: park@dahyeon.us
|
||||
server: https://acme-v02.api.letsencrypt.org/directory
|
||||
privateKeySecretRef:
|
||||
name: letsencrypt-prod
|
||||
solvers:
|
||||
- dns01:
|
||||
cloudflare:
|
||||
apiTokenSecretRef:
|
||||
name: cloudflare-api-token-secret
|
||||
key: api-token
|
||||
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- clusterissuer-letsencrypt-prod.yaml
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
crds:
|
||||
enabled: true
|
||||
@@ -0,0 +1,9 @@
|
||||
# HAProxy Ingress
|
||||
|
||||
This component owns the HAProxy Ingress Controller installation values.
|
||||
|
||||
Ingress resources are owned by the platform or service that exposes the route:
|
||||
|
||||
- Platform routes: this repository.
|
||||
- Service routes: `service-state`.
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
controller:
|
||||
ingressClass: haproxy
|
||||
ingressClassResource:
|
||||
enabled: true
|
||||
name: haproxy
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
apiVersion: secrets.infisical.com/v1beta1
|
||||
kind: InfisicalAuth
|
||||
metadata:
|
||||
name: infisical-auth
|
||||
namespace: infisical
|
||||
spec:
|
||||
infisicalConnectionRef:
|
||||
name: infisical
|
||||
namespace: infisical
|
||||
method: kubernetes
|
||||
kubernetes:
|
||||
identityIdRef:
|
||||
name: infisical-identity
|
||||
namespace: infisical
|
||||
key: identityId
|
||||
serviceAccountRef:
|
||||
name: infisical-auth
|
||||
namespace: infisical
|
||||
# Set this only if the Infisical Kubernetes Auth audience is configured.
|
||||
# serviceAccountTokenAudiences:
|
||||
# - infisical
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
apiVersion: secrets.infisical.com/v1beta1
|
||||
kind: InfisicalConnection
|
||||
metadata:
|
||||
name: infisical
|
||||
namespace: infisical
|
||||
spec:
|
||||
address: https://secret-manager.dahyeon.us
|
||||
@@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: infisical-auth
|
||||
namespace: infisical
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: infisical-auth-tokenreview
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: system:auth-delegator
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: infisical-auth
|
||||
namespace: infisical
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- k8s-auth-serviceaccount.yaml
|
||||
- infisical-connection.yaml
|
||||
- infisical-auth.yaml
|
||||
- platform-static-secrets.yaml
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
apiVersion: secrets.infisical.com/v1beta1
|
||||
kind: InfisicalStaticSecret
|
||||
metadata:
|
||||
name: cert-manager-cloudflare
|
||||
namespace: cert-manager
|
||||
spec:
|
||||
infisicalAuthRef:
|
||||
name: infisical-auth
|
||||
namespace: infisical
|
||||
syncOptions:
|
||||
refreshInterval: 60s
|
||||
instantUpdates: false
|
||||
sources:
|
||||
- projectId: 8520b8c0-3796-4fd6-a03c-6f0508c8c42c
|
||||
environmentSlug: prod
|
||||
secretPath: /platform/cert-manager
|
||||
recursive: false
|
||||
targets:
|
||||
- name: cloudflare-api-token-secret
|
||||
namespace: cert-manager
|
||||
kind: Secret
|
||||
creationPolicy: Owner
|
||||
template:
|
||||
engineVersion: v1
|
||||
data:
|
||||
api-token: "{{ .CLOUDFLARE_API_TOKEN.Value }}"
|
||||
---
|
||||
apiVersion: secrets.infisical.com/v1beta1
|
||||
kind: InfisicalStaticSecret
|
||||
metadata:
|
||||
name: monitoring-grafana-admin
|
||||
namespace: monitoring
|
||||
spec:
|
||||
infisicalAuthRef:
|
||||
name: infisical-auth
|
||||
namespace: infisical
|
||||
syncOptions:
|
||||
refreshInterval: 60s
|
||||
instantUpdates: false
|
||||
sources:
|
||||
- projectId: 8520b8c0-3796-4fd6-a03c-6f0508c8c42c
|
||||
environmentSlug: prod
|
||||
secretPath: /platform/monitoring
|
||||
recursive: false
|
||||
targets:
|
||||
- name: grafana-admin
|
||||
namespace: monitoring
|
||||
kind: Secret
|
||||
creationPolicy: Owner
|
||||
template:
|
||||
engineVersion: v1
|
||||
data:
|
||||
admin-user: "{{ .GRAFANA_ADMIN_USER.Value }}"
|
||||
admin-password: "{{ .GRAFANA_ADMIN_PASSWORD.Value }}"
|
||||
@@ -0,0 +1,4 @@
|
||||
# Values for the Infisical Operator Helm chart.
|
||||
# Pin the chart repository and chart version in argocd/applicationsets.
|
||||
{}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources: []
|
||||
@@ -0,0 +1,7 @@
|
||||
grafana:
|
||||
admin:
|
||||
existingSecret: grafana-admin
|
||||
userKey: admin-user
|
||||
passwordKey: admin-password
|
||||
ingress:
|
||||
enabled: false
|
||||
@@ -0,0 +1,24 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: tekton-dashboard
|
||||
namespace: tekton-pipelines
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
spec:
|
||||
ingressClassName: haproxy
|
||||
tls:
|
||||
- hosts:
|
||||
- tekton.dahyeon.us
|
||||
secretName: tekton-dashboard-tls
|
||||
rules:
|
||||
- host: tekton.dahyeon.us
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: tekton-dashboard
|
||||
port:
|
||||
number: 9097
|
||||
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- tektonconfig.yaml
|
||||
- ingress.yaml
|
||||
@@ -0,0 +1,8 @@
|
||||
apiVersion: operator.tekton.dev/v1alpha1
|
||||
kind: TektonConfig
|
||||
metadata:
|
||||
name: config
|
||||
spec:
|
||||
targetNamespace: tekton-pipelines
|
||||
profile: all
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- https://infra.tekton.dev/tekton-releases/operator/previous/v0.79.1/release.yaml
|
||||
@@ -0,0 +1,2 @@
|
||||
# Tekton Operator is pinned in kustomization.yaml:
|
||||
# https://infra.tekton.dev/tekton-releases/operator/previous/v0.79.1/release.yaml
|
||||
Reference in new issue
Block a user