flux: infra observability
/ continuous-deploy (push) Failing after 13s
/ continuous-deploy (push) Failing after 13s
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
tmp
|
tmp
|
||||||
**.env
|
**.env
|
||||||
**.private.**
|
**.dec.**
|
||||||
**.local.**
|
**.local.**
|
||||||
.kube/**
|
.kube/**
|
||||||
@@ -8,7 +8,6 @@ Using [gitea](https://git.limbosolutions.com/kb/gitea) as git server.
|
|||||||
- [Deploy](#deploy)
|
- [Deploy](#deploy)
|
||||||
- [Continuous Deploy](#continuous-deploy)
|
- [Continuous Deploy](#continuous-deploy)
|
||||||
- [App](#app)
|
- [App](#app)
|
||||||
- [Infra](#infra)
|
|
||||||
- [Backups](#backups)
|
- [Backups](#backups)
|
||||||
|
|
||||||
## SSO
|
## SSO
|
||||||
@@ -22,7 +21,7 @@ References:
|
|||||||
- <https://gitea.com/gitea/helm-gitea>
|
- <https://gitea.com/gitea/helm-gitea>
|
||||||
- <https://dl.gitea.com/charts/>
|
- <https://dl.gitea.com/charts/>
|
||||||
|
|
||||||
Migration to flux
|
Migration to flux.
|
||||||
|
|
||||||
For fluxcd setup execute.
|
For fluxcd setup execute.
|
||||||
|
|
||||||
@@ -67,14 +66,6 @@ Deploy App
|
|||||||
|
|
||||||
- [backups-kustomization](/deploy/app/kustomization.yaml)
|
- [backups-kustomization](/deploy/app/kustomization.yaml)
|
||||||
|
|
||||||
### Infra
|
|
||||||
|
|
||||||
```bash
|
|
||||||
./ops-scripts/apply-infra.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
- [kustomization](/deploy/infra/kustomization.yaml)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Backups
|
## Backups
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
**
|
||||||
|
!.sops.pub.asc
|
||||||
|
!.gitignore
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: infra
|
||||||
|
namespace: git-limbosolutions-com
|
||||||
|
spec:
|
||||||
|
interval: 1m
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: git-limbosolutions-com
|
||||||
|
path: deploy/infra
|
||||||
|
prune: true
|
||||||
@@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
|||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- git-repo.yaml
|
- git-repo.yaml
|
||||||
|
- infra-sync.yaml
|
||||||
secretGenerator:
|
secretGenerator:
|
||||||
- name: flux-repo-ssh-credentials
|
- name: flux-repo-ssh-credentials
|
||||||
files:
|
files:
|
||||||
|
|||||||
@@ -1,53 +0,0 @@
|
|||||||
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: continuous-deploy
|
|
||||||
namespace: git-limbosolutions-com
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: continuous-deploy
|
|
||||||
annotations:
|
|
||||||
kubernetes.io/service-account.name: continuous-deploy
|
|
||||||
type: kubernetes.io/service-account-token
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: Role
|
|
||||||
metadata:
|
|
||||||
namespace: git-limbosolutions-com
|
|
||||||
name: continuous-deploy
|
|
||||||
rules:
|
|
||||||
- apiGroups: [""]
|
|
||||||
resources: ["pods", "services", "secrets", "configmaps", "persistentvolumeclaims"]
|
|
||||||
verbs: ["get", "watch", "list", "create", "update", "patch", "delete"]
|
|
||||||
|
|
||||||
- apiGroups: ["apps"]
|
|
||||||
resources: ["deployments", "statefulsets"]
|
|
||||||
verbs: ["get", "watch", "list", "create", "update", "patch", "delete"]
|
|
||||||
|
|
||||||
- apiGroups: ["batch"]
|
|
||||||
resources: ["cronjobs", "jobs"]
|
|
||||||
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: RoleBinding
|
|
||||||
metadata:
|
|
||||||
name: continuous-deploy
|
|
||||||
namespace: git-limbosolutions-com
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
name: continuous-deploy
|
|
||||||
namespace: git-limbosolutions-com
|
|
||||||
roleRef:
|
|
||||||
kind: Role
|
|
||||||
name: continuous-deploy
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
|
|
||||||
@@ -1,15 +1,10 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- namespace.yaml
|
|
||||||
- cd-serviceaccount.yaml
|
|
||||||
- network-policies.yaml
|
- network-policies.yaml
|
||||||
- certificate.yaml
|
- certificate.yaml
|
||||||
- ingress-web.yaml
|
- ingress-web.yaml
|
||||||
- ingress-web-public.yaml
|
- ingress-web-public.yaml
|
||||||
- ingress-ssh.yaml
|
- ingress-ssh.yaml
|
||||||
- ingress-ssh-public.yaml
|
- ingress-ssh-public.yaml
|
||||||
generatorOptions:
|
|
||||||
disableNameSuffixHash: true
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
echo "Executing infra deploy."
|
|
||||||
|
|
||||||
kubectl kustomize deploy/infra | kubectl -n git-limbosolutions-com apply -f -
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user