-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
124 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |