Skip to content

Commit

Permalink
updated deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaven committed Jun 14, 2023
1 parent 7f02058 commit 310a188
Show file tree
Hide file tree
Showing 61 changed files with 96 additions and 25 deletions.
1 change: 1 addition & 0 deletions api/models/models.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package models
19 changes: 0 additions & 19 deletions deployment/apps/null-bot-app.yaml

This file was deleted.

File renamed without changes.
File renamed without changes.
22 changes: 22 additions & 0 deletions deployments/apps/cert-manager.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: cert-manager
namespace: argocd
spec:
destination:
namespace: cert-manager
server: https://kubernetes.default.svc
project: null-cloud
source:
chart: cert-manager
helm:
parameters:
- name: installCRDs
value: "true"
repoURL: https://charts.jetstack.io
targetRevision: v1.12.0
syncPolicy:
automated: {}
syncOptions:
- CreateNamespace=true
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
namespace: web
project: null-cloud
source:
path: deployments/null-web/overlays/prod
path: deployments/manifests/null-web/overlays/prod
repoURL: https://github.com/null-channel/nullcloud-deployments/
targetRevision: HEAD
syncPolicy:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
namespace: infra
project: null-cloud
source:
path: deployments/infra/overlays/prod
path: deployments/manifests/overlays/prod
repoURL: https://github.com/null-channel/nullcloud-deployments/
targetRevision: HEAD
syncPolicy:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: cert-manager
name: nats-certs
namespace: argocd
spec:
destination:
name: in-cluster
namespace: cert-manager
namespace: nats
project: null-cloud
source:
path: deployments/cert-manager
repoURL: https://github.com/null-channel/nullcloud-deployments/
path: deployments/manifests/nats
repoURL: https://github.com/null-channel/eddington/
targetRevision: HEAD
syncPolicy:
automated:
Expand Down
20 changes: 20 additions & 0 deletions deployments/apps/nats.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: nats
namespace: argocd
spec:
project: null-cloud
source:
chart: nats/nats
repoURL: https://nats-io.github.io/k8s/helm/charts/
targetRevision: 2.7.4
helm:
releaseName: nats
destination:
server: "https://kubernetes.default.svc"
namespace: nats
syncPolicy:
automated: {}
syncOptions:
- CreateNamespace=true
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
47 changes: 47 additions & 0 deletions deployments/manifests/nats/certs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
apiVersion: cert-manager.io/v1alpha2
kind: Certificate
metadata:
name: nats-ca
spec:
secretName: nats-ca
duration: 8736h # 1 year
renewBefore: 240h # 10 days
issuerRef:
name: selfsigning
kind: ClusterIssuer
commonName: nats-ca
usages:
- cert sign
organization:
- Your organization
isCA: true
---
apiVersion: cert-manager.io/v1alpha2
kind: Issuer
metadata:
name: nats-ca
spec:
ca:
secretName: nats-ca
---
apiVersion: cert-manager.io/v1alpha2
kind: Certificate
metadata:
name: nats-server-tls
spec:
secretName: nats-server-tls
duration: 2160h # 90 days
renewBefore: 240h # 10 days
issuerRef:
name: nats-ca
kind: Issuer
usages:
- signing
- key encipherment
- server auth
organization:
- Your organization
commonName: nats.default.svc.cluster.local
dnsNames:
- nats.default.svc
Empty file.
File renamed without changes.

0 comments on commit 310a188

Please sign in to comment.