Skip to content

Commit

Permalink
--wip-- [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
okdas committed Mar 21, 2023
1 parent 7ad1c26 commit 87de603
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
27 changes: 27 additions & 0 deletions clusters/gcp-dev-us-east4-1/postgres-operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# We need postgres operator to provision databases for Validators
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: postgres-operator
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
labels:
provisioned-by: "protocol"
spec:
destination:
name: dev-in-cluster
namespace: postgres-operator
project: default
source:
path: helm/install
repoURL: https://github.com/CrunchyData/postgres-operator-examples.git
targetRevision: 5371692f26f97eb26eae4b54e4ef8848a76a278d # Not using HEAD or Master so we are pinned to the particular version
helm: {}
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- Replace=true
46 changes: 46 additions & 0 deletions clusters/gcp-dev-us-east4-1/v1-devnets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# ApplicationSet that creates a devnet for each yaml file in the devnets-configs directory
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: v1-devnets
namespace: argocd
labels:
team: "protocol"
purpose: "devnets"
provisioned-by: "protocol"
spec:
generators:
- git:
repoURL: https://github.com/pokt-network/protocol-infra.git
revision: dk-init
files:
- path: devnets-configs/**.yaml
template:
metadata:
name: "devnet-{{networkName}}"
namespace: argocd
labels:
team: "protocol"
purpose: "devnets"
devnet: "{{networkName}}"
provisioned-by: "protocol"
spec:
destination:
name: dev-in-cluster
namespace: "devnet-{{networkName}}"
project: default
source:
path: charts/v1-network-base
repoURL: https://github.com/pokt-network/protocol-infra.git
targetRevision: dk-init
helm:
valueFiles: # Must be in the same repo https://argo-cd.readthedocs.io/en/stable/user-guide/helm/#values-files
- ../../devnets-configs/{{networkName}}.yaml
values: |
networkName: {{networkName}}
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
50 changes: 50 additions & 0 deletions clusters/gcp-dev-us-east4-1/v1-pocket-operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: dev-pocket-operator
namespace: argocd
labels:
team: "protocol"
purpose: "pocket-operator"
provisioned-by: "protocol"
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
name: dev-in-cluster
namespace: pocket-operator
project: default
syncPolicy:
automated:
prune: false
selfHeal: false
syncOptions:
- CreateNamespace=true
source:
repoURL: https://github.com/pokt-network/pocket-operator.git
path: config/default
targetRevision: master # TODO(@okdas): Change this to a tag when we have versions
kustomize:
# Supported kustomize transformers. https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/
commonLabels:
purpose: pocket-operator
team: protocol
images:
- ghcr.io/pokt-network/pocket-operator:sha-dd21f95
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: pocket-operator
namespace: pocket-operator
spec:
endpoints:
- path: /metrics
port: https
scheme: https
bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
tlsConfig:
insecureSkipVerify: true
selector:
matchLabels:
app.kubernetes.io/instance: controller-manager-metrics-service

0 comments on commit 87de603

Please sign in to comment.