-
Notifications
You must be signed in to change notification settings - Fork 70
feat: vultr physical support #848
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 12 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
d221229
feat: add vultr physical cluster
jokestax a08e322
add resources to physical
jokestax ed8ecd8
add terraform
jokestax 3286780
add gpu tf
jokestax 7eeaff1
add gpu template
jokestax 88da48b
fix k8s version
jokestax 4564ba7
add credentials
jokestax 34e6f48
fix provider config
jokestax 26efcac
fix providerconfig
jokestax 3890992
remove base64
jokestax d3f9ab2
fix access key name
jokestax 1343de8
fix encoding
jokestax c994b06
fix: format whitespace
jokestax e84b279
fix: revert gitlab
jokestax 3518655
fix: add trailing line
jokestax e2a0907
fix: remove cf origin issuer
jokestax File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,24 @@ | ||
| apiVersion: argoproj.io/v1alpha1 | ||
| kind: Application | ||
| metadata: | ||
| name: <WORKLOAD_CLUSTER_NAME>-provider-config | ||
| namespace: argocd | ||
| finalizers: | ||
| - resources-finalizer.argocd.argoproj.io | ||
| annotations: | ||
| argocd.argoproj.io/sync-wave: '0' | ||
| spec: | ||
| project: default | ||
| source: | ||
| repoURL: <GITOPS_REPO_URL> | ||
| path: registry/clusters/<WORKLOAD_CLUSTER_NAME>/provider-config | ||
| targetRevision: HEAD | ||
| destination: | ||
| name: in-cluster | ||
| namespace: crossplane-system | ||
| syncPolicy: | ||
| automated: | ||
| prune: true | ||
| selfHeal: true | ||
| syncOptions: | ||
| - CreateNamespace=true |
This file contains hidden or 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,24 @@ | ||
| apiVersion: argoproj.io/v1alpha1 | ||
| kind: Application | ||
| metadata: | ||
| name: <WORKLOAD_CLUSTER_NAME>-infrastructure | ||
| namespace: argocd | ||
| finalizers: | ||
| - resources-finalizer.argocd.argoproj.io | ||
| annotations: | ||
| argocd.argoproj.io/sync-wave: '10' | ||
| spec: | ||
| project: default | ||
| source: | ||
| repoURL: <GITOPS_REPO_URL> | ||
| path: registry/clusters/<WORKLOAD_CLUSTER_NAME>/infrastructure | ||
| targetRevision: HEAD | ||
| destination: | ||
| name: in-cluster | ||
| namespace: <WORKLOAD_CLUSTER_NAME> | ||
| syncPolicy: | ||
| automated: | ||
| prune: true | ||
| selfHeal: true | ||
| syncOptions: | ||
| - CreateNamespace=true |
63 changes: 63 additions & 0 deletions
63
vultr-github/templates/gpu-cluster/20-argocd-connection.yaml
This file contains hidden or 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,63 @@ | ||
| apiVersion: "external-secrets.io/v1beta1" | ||
| kind: ExternalSecret | ||
| metadata: | ||
| name: <WORKLOAD_CLUSTER_NAME> | ||
| annotations: | ||
| argocd.argoproj.io/sync-wave: '20' | ||
| labels: | ||
| app.kubernetes.io/part-of: argocd | ||
| spec: | ||
| target: | ||
| name: <WORKLOAD_CLUSTER_NAME> | ||
| template: | ||
| metadata: | ||
| labels: | ||
| argocd.argoproj.io/secret-type: cluster | ||
| engineVersion: v2 | ||
| data: | ||
| name: "{{ .cluster_name }}" | ||
| server: "{{ .host }}" | ||
| clusterResources: "true" | ||
| config: | | ||
| { | ||
| "bearerToken": "{{ .argocd_manager_sa_token }}", | ||
| "tlsClientConfig": { | ||
| "caData": "{{ .cluster_ca_certificate | b64enc }}", | ||
| "certData": "{{ .client_certificate | b64enc }}", | ||
| "insecure": false, | ||
| "keyData": "{{ .client_key | b64enc }}" | ||
| } | ||
| } | ||
| secretStoreRef: | ||
| kind: ClusterSecretStore | ||
| name: vault-kv-secret | ||
| refreshInterval: 10s | ||
| data: | ||
| - remoteRef: | ||
| key: clusters/<WORKLOAD_CLUSTER_NAME> | ||
| property: argocd_manager_sa_token | ||
| secretKey: argocd_manager_sa_token | ||
| - remoteRef: | ||
| key: clusters/<WORKLOAD_CLUSTER_NAME> | ||
| property: host | ||
| secretKey: host | ||
| - remoteRef: | ||
| key: clusters/<WORKLOAD_CLUSTER_NAME> | ||
| property: cluster_name | ||
| secretKey: cluster_name | ||
| - remoteRef: | ||
| key: clusters/<WORKLOAD_CLUSTER_NAME> | ||
| property: cluster_ca_certificate | ||
| conversionStrategy: Default | ||
| secretKey: cluster_ca_certificate | ||
| - remoteRef: | ||
| key: clusters/<WORKLOAD_CLUSTER_NAME> | ||
| property: client_certificate | ||
| conversionStrategy: Default | ||
| secretKey: client_certificate | ||
| - remoteRef: | ||
| key: clusters/<WORKLOAD_CLUSTER_NAME> | ||
| property: client_key | ||
| conversionStrategy: Default | ||
| secretKey: client_key | ||
|
|
This file contains hidden or 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,30 @@ | ||
| apiVersion: argoproj.io/v1alpha1 | ||
| kind: Application | ||
| metadata: | ||
| name: <WORKLOAD_CLUSTER_NAME>-cert-manager | ||
| namespace: argocd | ||
| finalizers: | ||
| - resources-finalizer.argocd.argoproj.io | ||
| annotations: | ||
| argocd.argoproj.io/sync-wave: '30' | ||
| spec: | ||
| project: <WORKLOAD_CLUSTER_NAME> | ||
| source: | ||
| repoURL: https://charts.jetstack.io | ||
| targetRevision: v1.14.4 | ||
| helm: | ||
| values: |- | ||
| serviceAccount: | ||
| create: true | ||
| name: cert-manager | ||
| installCRDs: true | ||
| chart: cert-manager | ||
| destination: | ||
| name: <WORKLOAD_CLUSTER_NAME> | ||
| namespace: cert-manager | ||
| syncPolicy: | ||
| automated: | ||
| prune: true | ||
| selfHeal: true | ||
| syncOptions: | ||
| - CreateNamespace=true |
This file contains hidden or 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,42 @@ | ||
| apiVersion: argoproj.io/v1alpha1 | ||
| kind: Application | ||
| metadata: | ||
| name: <WORKLOAD_CLUSTER_NAME>-external-dns | ||
| namespace: argocd | ||
| annotations: | ||
| argocd.argoproj.io/sync-wave: '30' | ||
| spec: | ||
| project: <WORKLOAD_CLUSTER_NAME> | ||
| source: | ||
| repoURL: https://kubernetes-sigs.github.io/external-dns | ||
| targetRevision: 1.14.4 | ||
| helm: | ||
| releaseName: external-dns | ||
| values: | | ||
| image: | ||
| repository: registry.k8s.io/external-dns/external-dns | ||
| tag: "v0.13.2" | ||
| serviceAccount: | ||
| create: true | ||
| name: external-dns | ||
| provider: <EXTERNAL_DNS_PROVIDER_NAME> | ||
| sources: | ||
| - ingress | ||
| domainFilters: | ||
| - <WORKLOAD_EXTERNAL_DNS_DOMAIN_NAME> | ||
| env: | ||
| - name: <EXTERNAL_DNS_PROVIDER_TOKEN_ENV_NAME> | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: external-dns-secrets | ||
| key: token | ||
| chart: external-dns | ||
| destination: | ||
| name: <WORKLOAD_CLUSTER_NAME> | ||
| namespace: external-dns | ||
| syncPolicy: | ||
| automated: | ||
| prune: true | ||
| selfHeal: true | ||
| syncOptions: | ||
| - CreateNamespace=true |
71 changes: 71 additions & 0 deletions
71
vultr-github/templates/gpu-cluster/30-external-secrets-operator.yaml
This file contains hidden or 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,71 @@ | ||
| apiVersion: argoproj.io/v1alpha1 | ||
| kind: Application | ||
| metadata: | ||
| name: <WORKLOAD_CLUSTER_NAME>-external-secrets-operator | ||
| namespace: argocd | ||
| finalizers: | ||
| - resources-finalizer.argocd.argoproj.io | ||
| annotations: | ||
| argocd.argoproj.io/sync-wave: '30' | ||
| spec: | ||
| project: <WORKLOAD_CLUSTER_NAME> | ||
| source: | ||
| repoURL: https://charts.external-secrets.io | ||
| targetRevision: 0.8.1 | ||
| helm: | ||
| values: |- | ||
| serviceAccount: | ||
| create: false | ||
| name: external-secrets | ||
| chart: external-secrets | ||
| destination: | ||
| name: <WORKLOAD_CLUSTER_NAME> | ||
| namespace: external-secrets-operator | ||
| syncPolicy: | ||
| automated: | ||
| prune: true | ||
| selfHeal: true | ||
| syncOptions: | ||
| - CreateNamespace=true | ||
| - RespectIgnoreDifferences=true | ||
| ignoreDifferences: | ||
| - group: apiextensions.k8s.io | ||
| kind: CustomResourceDefinition | ||
| jqPathExpressions: | ||
| - .spec.conversion.webhook.clientConfig.caBundle | ||
| - .spec.conversion.webhook.clientConfig.service.name | ||
| - .spec.conversion.webhook.clientConfig.service.namespace | ||
| - group: admissionregistration.k8s.io | ||
| kind: ValidatingWebhookConfiguration | ||
| jqPathExpressions: | ||
| - .webhooks[]?.clientConfig.caBundle | ||
| --- | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: ClusterRoleBinding | ||
| metadata: | ||
| name: <WORKLOAD_CLUSTER_NAME>-eso-kubernetes-external-secrets-auth | ||
| annotations: | ||
| argocd.argoproj.io/sync-wave: '40' | ||
| roleRef: | ||
| apiGroup: rbac.authorization.k8s.io | ||
| kind: ClusterRole | ||
| name: 'system:auth-delegator' | ||
| subjects: | ||
| - kind: ServiceAccount | ||
| name: external-secrets | ||
| namespace: external-secrets-operator | ||
| --- | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: ClusterRoleBinding | ||
| metadata: | ||
| name: <WORKLOAD_CLUSTER_NAME>-eso-kubernetes-external-secrets-auth2 | ||
| annotations: | ||
| argocd.argoproj.io/sync-wave: '40' | ||
| roleRef: | ||
| apiGroup: rbac.authorization.k8s.io | ||
| kind: ClusterRole | ||
| name: 'cluster-admin' | ||
| subjects: | ||
| - kind: ServiceAccount | ||
| name: external-secrets | ||
| namespace: external-secrets-operator |
This file contains hidden or 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,38 @@ | ||
| apiVersion: argoproj.io/v1alpha1 | ||
| kind: Application | ||
| metadata: | ||
| name: <WORKLOAD_CLUSTER_NAME>-ingress-nginx | ||
| namespace: argocd | ||
| finalizers: | ||
| - resources-finalizer.argocd.argoproj.io | ||
| annotations: | ||
| argocd.argoproj.io/sync-wave: '30' | ||
| spec: | ||
| project: <WORKLOAD_CLUSTER_NAME> | ||
| source: | ||
| repoURL: https://kubernetes.github.io/ingress-nginx | ||
| targetRevision: 4.10.0 | ||
| helm: | ||
| values: |- | ||
| controller: | ||
| podAnnotations: | ||
| linkerd.io/inject: enabled | ||
| ingressClass: nginx | ||
| publishService: | ||
| enabled: true | ||
| service: | ||
| annotations: | ||
| service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "https" | ||
| service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: "60" | ||
| extraArgs: | ||
| enable-ssl-passthrough: true | ||
| chart: ingress-nginx | ||
| destination: | ||
| name: <WORKLOAD_CLUSTER_NAME> | ||
| namespace: ingress-nginx | ||
| syncPolicy: | ||
| automated: | ||
| prune: true | ||
| selfHeal: true | ||
| syncOptions: | ||
| - CreateNamespace=true |
This file contains hidden or 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,31 @@ | ||
| apiVersion: argoproj.io/v1alpha1 | ||
| kind: Application | ||
| metadata: | ||
| name: <WORKLOAD_CLUSTER_NAME>-reloader | ||
| namespace: argocd | ||
| annotations: | ||
| argocd.argoproj.io/sync-wave: '30' | ||
| spec: | ||
| project: <WORKLOAD_CLUSTER_NAME> | ||
| source: | ||
| repoURL: 'https://stakater.github.io/stakater-charts' | ||
| targetRevision: v1.0.10 | ||
| chart: reloader | ||
| helm: | ||
| values: |- | ||
| ignoreSecrets: false | ||
| destination: | ||
| name: <WORKLOAD_CLUSTER_NAME> | ||
| namespace: reloader | ||
| syncPolicy: | ||
| automated: | ||
| prune: true | ||
| selfHeal: true | ||
| syncOptions: | ||
| - CreateNamespace=true | ||
| retry: | ||
| limit: 5 | ||
| backoff: | ||
| duration: 5s | ||
| maxDuration: 5m0s | ||
| factor: 2 |
22 changes: 22 additions & 0 deletions
22
vultr-github/templates/gpu-cluster/40-cloudflare-origin-issuer-crd.yaml
This file contains hidden or 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,22 @@ | ||
| apiVersion: argoproj.io/v1alpha1 | ||
| kind: Application | ||
| metadata: | ||
| name: <WORKLOAD_CLUSTER_NAME>-cloudflare-origin-issuer-crd | ||
| namespace: argocd | ||
| annotations: | ||
| argocd.argoproj.io/sync-wave: '40' | ||
| spec: | ||
| project: <WORKLOAD_CLUSTER_NAME> | ||
| source: | ||
| repoURL: https://github.com/cloudflare/origin-ca-issuer | ||
| path: deploy/crds | ||
| targetRevision: v0.6.1 | ||
| destination: | ||
| name: <WORKLOAD_CLUSTER_NAME> | ||
| namespace: cert-manager | ||
| syncPolicy: | ||
| automated: | ||
| prune: true | ||
| selfHeal: true | ||
| syncOptions: | ||
| - CreateNamespace=true | ||
This file contains hidden or 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,24 @@ | ||
| apiVersion: argoproj.io/v1alpha1 | ||
| kind: Application | ||
| metadata: | ||
| name: <WORKLOAD_CLUSTER_NAME>-cert-issuers | ||
| namespace: argocd | ||
| finalizers: | ||
| - resources-finalizer.argocd.argoproj.io | ||
| annotations: | ||
| argocd.argoproj.io/sync-wave: '40' | ||
| spec: | ||
| project: <WORKLOAD_CLUSTER_NAME> | ||
| source: | ||
| repoURL: <GITOPS_REPO_URL> | ||
| path: registry/clusters/<WORKLOAD_CLUSTER_NAME>/cert-issuers | ||
| targetRevision: HEAD | ||
| destination: | ||
| name: <WORKLOAD_CLUSTER_NAME> | ||
| namespace: cert-manager | ||
| syncPolicy: | ||
| automated: | ||
| prune: true | ||
| selfHeal: true | ||
| syncOptions: | ||
| - CreateNamespace=true |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.