Skip to content
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

feat : custom repo for civo #778

Open
wants to merge 146 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
85d3b41
variables for custom-repo
jokestax Jul 18, 2024
c568750
added proper syntax
jokestax Jul 18, 2024
44ddb1a
added support for akamai,aws,google,digitalocean,k3d,vultr (github,gi…
jokestax Jul 18, 2024
642105d
custom repo for k3d
jokestax Jul 24, 2024
8fd5907
changes in k3d
jokestax Jul 24, 2024
9ac6a4c
minor change on k3d
jokestax Jul 24, 2024
e669558
minor fix in civo
jokestax Jul 25, 2024
0ca117d
version change
jokestax Jul 25, 2024
9803c1c
version change
jokestax Jul 25, 2024
4e6510e
version change
jokestax Jul 25, 2024
4f64bcd
version change
jokestax Jul 25, 2024
b0df430
revert version change
jokestax Jul 25, 2024
9d7bc3f
removed iam policies
jokestax Jul 25, 2024
42bbaac
removed space gap
jokestax Jul 25, 2024
fafdf63
Update main.tf
jokestax Jul 26, 2024
6bef45b
Update main.tf
jokestax Jul 26, 2024
4db312a
change in aws github user
jokestax Jul 26, 2024
3da9047
change name convention
jokestax Jul 27, 2024
241d3ba
Merge branch 'main' into feat-custom-repo
fharper Jul 29, 2024
03c664c
removed hardcoded metpahor from k3d github
jokestax Aug 5, 2024
120620e
added akamai gitlab
jokestax Aug 14, 2024
f7d1171
set next macro chart for kubefirst - 2.4.14-rc40
kube1st Jul 29, 2024
cec3d32
set next macro chart for kubefirst - 2.4.14-rc41
kube1st Jul 29, 2024
eb5d878
chore: add editorconfig support
mrsimonemms Jul 10, 2024
f78d66a
set next macro chart for kubefirst - 2.4.14-rc42
kube1st Aug 1, 2024
546c208
set next macro chart for kubefirst - 2.4.14-rc43
kube1st Aug 1, 2024
2c0ab85
set next macro chart for kubefirst - 2.4.14-rc44
kube1st Aug 1, 2024
5d1abf3
set next macro chart for kubefirst - 2.4.14-rc45
kube1st Aug 2, 2024
117ab64
set next macro chart for kubefirst - 2.4.14-rc46
kube1st Aug 2, 2024
ca00203
set next macro chart for kubefirst - 2.4.14-rc47
kube1st Aug 2, 2024
69ccdbc
set next macro chart for kubefirst - 2.4.14-rc48
kube1st Aug 2, 2024
e513588
set next macro chart for kubefirst - 2.4.14-rc49
kube1st Aug 2, 2024
f9aa803
set next macro chart for kubefirst - 2.50.0-rc.2a704f6
kube1st Aug 5, 2024
8cfeb69
set next macro chart for kubefirst - 2.50.0-rc.e4183ac
kube1st Aug 5, 2024
e54bbba
set next macro chart for kubefirst - 2.4.14-rc54
kube1st Aug 5, 2024
9570d8c
set next macro chart for kubefirst - 2.4.14-rc55
kube1st Aug 5, 2024
4070aa4
set next macro chart for kubefirst - 2.4.14-rc56
kube1st Aug 5, 2024
e25076a
set next macro chart for kubefirst - 2.4.14-rc57
kube1st Aug 5, 2024
b6cae28
set next macro chart for kubefirst - 2.4.14-rc58
kube1st Aug 5, 2024
2aa4c63
set next macro chart for kubefirst - 2.4.14-rc59
kube1st Aug 5, 2024
1ce2311
set next macro chart for kubefirst - 2.4.14-rc60
kube1st Aug 5, 2024
f589da6
set next macro chart for kubefirst - 2.4.14-rc61
kube1st Aug 5, 2024
59b1c6b
set next macro chart for kubefirst - 2.4.14-rc62
kube1st Aug 5, 2024
ddcce8c
feat: adopt 2.4.14 release
johndietz Aug 6, 2024
a6240aa
feat(aws-gitlab): add ability to create a physical cluster in aws gitlab
mrsimonemms Jul 31, 2024
d24c5fc
feat(aws-gitlab): add service account to kubefirst-api
mrsimonemms Aug 1, 2024
4121591
feat(aws-gitlab): change git login to @gitlab.com
mrsimonemms Aug 1, 2024
bc998ae
patch iam
jarededwards Aug 2, 2024
2dcb903
fix terraform provider service account name with wildcard
jarededwards Aug 2, 2024
70106a4
fix(aws-github): add physical cluster support
mrsimonemms Jul 30, 2024
f59826d
fix(aws-github): update the required providers
mrsimonemms Jul 30, 2024
1a1e77e
fix(aws-gitlab): update gitlab url for image registry secret
mrsimonemms Aug 6, 2024
7c65c4e
set next macro chart for kubefirst - 2.4.15-rc2
kube1st Aug 6, 2024
19597fb
set next macro chart for kubefirst - 2.4.15-rc3
kube1st Aug 6, 2024
a894705
set next macro chart for kubefirst - 2.4.15-rc4
kube1st Aug 6, 2024
3ce9c09
set released macro chart for kubefirst - 2.4.15
kube1st Aug 6, 2024
610acce
chore: add devcontainer support to the project
mrsimonemms Jul 11, 2024
a0c681b
set next macro chart for kubefirst - 2.6.0-rc1
kube1st Aug 7, 2024
44cc1c4
set next macro chart for kubefirst - 2.4.16-rc2
kube1st Aug 7, 2024
d2ae989
set released macro chart for kubefirst - 2.4.16
kube1st Aug 8, 2024
1a45d2e
fix: node type (#786)
CristhianF7 Aug 8, 2024
8e37f8a
civo terraform cluster bug fix (#788)
jarededwards Aug 15, 2024
adcb50b
rename of org
simple-noob-1 Aug 15, 2024
9e7e4ed
set next macro chart for kubefirst - 2.4.16-rc1
kube1st Aug 15, 2024
4e8b44c
set next macro chart for kubefirst - 2.4.16-rc3
kube1st Aug 15, 2024
c3f8129
set next macro chart for kubefirst - 2.4.16-rc4
kube1st Aug 15, 2024
8fc5562
set next macro chart for kubefirst - 2.4.16-rc5
kube1st Aug 15, 2024
a2128bb
set next macro chart for kubefirst - 2.4.17-rc3
kube1st Aug 16, 2024
7e1ad12
set next macro chart for kubefirst - 2.4.17-rc4
kube1st Aug 16, 2024
b5e9148
set next macro chart for kubefirst - 2.4.17-rc5
kube1st Aug 16, 2024
83adc81
set released macro chart for kubefirst - 2.4.17
kube1st Aug 16, 2024
08268b2
upgrade aws eks version
simple-noob-1 Aug 19, 2024
27929f8
update k8s verison
jokestax Aug 21, 2024
98ed3ea
patch in workload cluster
jokestax Aug 21, 2024
f70e5d0
civo k8s and argo upgrade
jokestax Aug 21, 2024
53dfe22
fix: force replace Job during a sync (#792)
muse-sisay Aug 21, 2024
e357a57
google upgrade
jokestax Aug 21, 2024
91d5f56
vultr upgrade
jokestax Aug 21, 2024
0320f26
added registry-auth-secrets in vault
jokestax Aug 22, 2024
38e2868
changed manifest
jokestax Aug 26, 2024
f07908c
upgrade k8s version
jokestax Aug 27, 2024
d059201
set next macro chart for kubefirst - 2.5.0-rc5
konstruct-bot Aug 28, 2024
1f0f00d
set next macro chart for kubefirst - 2.5.0-rc6
konstruct-bot Aug 28, 2024
c025ae5
set next macro chart for kubefirst - 2.5.0-rc7
konstruct-bot Aug 28, 2024
fb24208
set next macro chart for kubefirst - 2.5.0-rc8
konstruct-bot Aug 28, 2024
8d1ed37
set next macro chart for kubefirst - 2.5.0-rc9
konstruct-bot Aug 28, 2024
2fa0bf2
set next macro chart for kubefirst - 2.5.0-rc10
konstruct-bot Aug 28, 2024
8d19da4
set next macro chart for kubefirst - 2.5.0-rc11
konstruct-bot Aug 28, 2024
d95c1da
set next macro chart for kubefirst - 2.5.0-rc12
konstruct-bot Aug 28, 2024
fe37606
set next macro chart for kubefirst - 2.5.0-rc13
konstruct-bot Aug 28, 2024
0d68644
version change
jokestax Jul 25, 2024
743d46d
feat(aws-gitlab): add ability to create a physical cluster in aws gitlab
mrsimonemms Jul 31, 2024
a21b448
version change
jokestax Jul 25, 2024
5b2ac52
feat(aws-gitlab): add ability to create a physical cluster in aws gitlab
mrsimonemms Jul 31, 2024
5c456f0
upgrade aws eks version
simple-noob-1 Aug 19, 2024
c69c2ac
k3d and k3s argo upgrade
jokestax Aug 28, 2024
8de4d95
changed kubefirst chart reference
jokestax Aug 28, 2024
d8f2379
set next macro chart for kubefirst - 2.5.0-rc14
konstruct-bot Aug 28, 2024
9b17d30
set next macro chart for kubefirst - 2.5.0-rc15
konstruct-bot Aug 28, 2024
541ee1c
set next macro chart for kubefirst - 2.5.0-rc16
konstruct-bot Aug 28, 2024
29d61f0
set next macro chart for kubefirst - 2.5.0-rc17
konstruct-bot Aug 28, 2024
2e73294
set next macro chart for kubefirst - 2.5.0-rc18
konstruct-bot Aug 28, 2024
2ded87b
set next macro chart for kubefirst - 2.5.0-rc19
konstruct-bot Aug 28, 2024
f4e204e
set next macro chart for kubefirst - 2.5.0-rc20
konstruct-bot Aug 28, 2024
abba411
set released macro chart for kubefirst - 2.5.0
konstruct-bot Aug 28, 2024
59096c0
fix missed versions for clouds (#798)
jarededwards Aug 28, 2024
8518e94
set released macro chart for kubefirst - 2.5.1
konstruct-bot Aug 29, 2024
a7364f6
set next macro chart for kubefirst - 2.5.3-rc1
konstruct-bot Aug 29, 2024
5b4634c
set next macro chart for kubefirst - 2.5.3-rc2
konstruct-bot Aug 29, 2024
4ba89ee
set next macro chart for kubefirst - 2.5.3-rc3
konstruct-bot Aug 29, 2024
276afd6
set next macro chart for kubefirst - 2.5.3-rc4
konstruct-bot Aug 29, 2024
f6cf0c0
set released macro chart for kubefirst - 2.5.3
konstruct-bot Aug 29, 2024
fc53413
stage a 2.5.3 release for k3s/akamai (#799)
johndietz Aug 29, 2024
7a129e4
set next macro chart for kubefirst - 2.5.4-rc1
konstruct-bot Aug 29, 2024
235a76e
set next macro chart for kubefirst - 2.5.4-rc2
konstruct-bot Aug 29, 2024
31d2136
set released macro chart for kubefirst - 2.5.4
konstruct-bot Aug 29, 2024
4dbb74d
set next macro chart for kubefirst - 2.5.5-rc1
konstruct-bot Aug 29, 2024
bee5f5a
set next macro chart for kubefirst - 2.5.5-rc2
konstruct-bot Aug 29, 2024
c077f0d
set next macro chart for kubefirst - 2.5.5-rc3
konstruct-bot Aug 29, 2024
4135b5c
set released macro chart for kubefirst - 2.5.5
konstruct-bot Aug 29, 2024
4376cc0
set next macro chart for kubefirst - 2.5.6-rc1
konstruct-bot Aug 29, 2024
b7bb748
set next macro chart for kubefirst - 2.5.6-rc2
konstruct-bot Aug 29, 2024
8223a85
set released macro chart for kubefirst - 2.5.6
konstruct-bot Aug 29, 2024
e832188
set next macro chart for kubefirst - 2.5.7-rc1
konstruct-bot Aug 30, 2024
17ad147
set released macro chart for kubefirst - 2.5.7
konstruct-bot Aug 30, 2024
54889ac
set next macro chart for kubefirst - 2.5.8-rc1
konstruct-bot Aug 30, 2024
312da12
set released macro chart for kubefirst - 2.5.8
konstruct-bot Aug 30, 2024
bf11553
set next macro chart for kubefirst - 2.5.9-rc1
konstruct-bot Aug 30, 2024
54a3ee5
set next macro chart for kubefirst - 2.5.9-rc2
konstruct-bot Aug 30, 2024
7e027b2
set next macro chart for kubefirst - 2.5.9-rc3
konstruct-bot Aug 30, 2024
36d1ca7
set released macro chart for kubefirst - 2.5.9
konstruct-bot Aug 30, 2024
c193a00
set next macro chart for kubefirst - 2.5.10-rc1
konstruct-bot Aug 30, 2024
b01cb18
set next macro chart for kubefirst - 2.5.10-rc2
konstruct-bot Aug 30, 2024
eb73d62
set next macro chart for kubefirst - 2.5.10-rc3
konstruct-bot Aug 30, 2024
d7c07b5
set released macro chart for kubefirst - 2.5.10
konstruct-bot Aug 30, 2024
f16a545
set next macro chart for kubefirst - 0.1.0-rc131
konstruct-bot Aug 30, 2024
87003ea
set released macro chart for colony - 0.0.1
konstruct-bot Aug 31, 2024
cffc410
set released macro chart for colony - 0.0.2
konstruct-bot Aug 31, 2024
5001d18
set released macro chart for colony - 0.0.3
konstruct-bot Aug 31, 2024
08d5b76
set next macro chart for kubefirst - 2.5.11-rc1
konstruct-bot Aug 31, 2024
9301985
set next macro chart for kubefirst - 2.5.11-rc2
konstruct-bot Aug 31, 2024
55f3c89
set next macro chart for kubefirst - 2.5.11-rc3
konstruct-bot Aug 31, 2024
6e4d63c
set released macro chart for kubefirst - 2.5.11
konstruct-bot Aug 31, 2024
191f9bd
set next macro chart for kubefirst - 2.5.12-rc1
konstruct-bot Sep 3, 2024
61b0193
set next macro chart for kubefirst - 2.5.12-rc2
konstruct-bot Sep 3, 2024
1a667d6
set next macro chart for kubefirst - 2.5.12-rc3
konstruct-bot Sep 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "devcontainer",
"image": "ghcr.io/kubefirst/devcontainers/full:latest",
"features": {},
"customizations": {
"vscode": {
"extensions": [],
"settings": {}
}
}
}
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.go]
indent_style = tab
indent_size = 4

[Makefile]
indent_style = tab
indent_size = 4
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ spec:
selfHeal: true
syncOptions:
- CreateNamespace=true
- Replace=true
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ kind: Job
metadata:
annotations:
argocd.argoproj.io/sync-wave: '0'
argocd.argoproj.io/sync-options: Force=true,Replace=true
name: wait-vault-tls
namespace: vault
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace: argocd
# To upgrade ArgoCD, increment the version here
# https://github.com/argoproj/argo-cd/tags
resources:
- github.com:kubefirst/manifests.git/argocd/cloud?ref=main
- github.com:konstructio/manifests.git/argocd/cloud?ref=v1.1.0
- argocd-ui-ingress.yaml
- externalsecrets.yaml
- argocd-oidc-restart-job.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ metadata:
spec:
project: default
source:
repoURL: https://charts.kubefirst.com
targetRevision: 2.4.14-rc22
repoURL: https://charts.konstruct.io
targetRevision: 2.5.12-rc3
chart: kubefirst
helm:
values: |-
Expand Down
2 changes: 1 addition & 1 deletion akamai-github/terraform/akamai/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ locals {

resource "linode_lke_cluster" "kubefirst" {
label = local.cluster_name
k8s_version = "1.28"
k8s_version = "1.30"
region = "us-central"
tags = ["<CLUSTER_NAME>"]

Expand Down
4 changes: 2 additions & 2 deletions akamai-github/terraform/github/repos.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ terraform {
module "gitops" {
source = "./modules/repository"

repo_name = "gitops"
repo_name = "<GIT_REPO_NAME> "
archive_on_destroy = false
auto_init = false # set to false if importing an existing repository
team_developers_id = github_team.developers.id
Expand Down Expand Up @@ -55,7 +55,7 @@ variable "atlantis_repo_webhook_secret" {
module "metaphor" {
source = "./modules/repository"

repo_name = "metaphor"
repo_name = "<METAPHOR_REPO_NAME>"
archive_on_destroy = false
auto_init = false # set to false if importing an existing repository
create_ecr = true
Expand Down
4 changes: 2 additions & 2 deletions akamai-github/terraform/github/teams.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
resource "github_team" "admins" {
name = "admins"
name = "<ADMIN_TEAM>"
description = "administrators of the kubefirst platform"
privacy = "closed"
}

resource "github_team" "developers" {
name = "developers"
name = "<DEVELOPER-TEAM>"
description = "developers using the kubefirst plaftform"
privacy = "closed"
}
2 changes: 1 addition & 1 deletion akamai-github/terraform/users/admins/data_sources.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
data "github_team" "admins" {
slug = "admins"
slug = "<ADMIN_TEAM>"
}

data "vault_auth_backend" "userpass" {
Expand Down
2 changes: 1 addition & 1 deletion akamai-github/terraform/users/developers/data_sources.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
data "github_team" "developers" {
slug = "developers"
slug = "<DEVELOPER-TEAM>"
}

data "vault_auth_backend" "userpass" {
Expand Down
6 changes: 3 additions & 3 deletions akamai-github/terraform/users/users.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ terraform {
}

data "github_team" "admins" {
slug = "admins"
slug = "<ADMIN_TEAM>"
}

data "github_team" "developers" {
slug = "developers"
slug = "<DEVELOPER-TEAM>"
}

data "vault_auth_backend" "userpass" {
path = "userpass"
}

data "vault_identity_group" "admins" {
group_name = "admins"
group_name = "<ADMIN_TEAM>"
}

variable "initial_password" {
Expand Down
4 changes: 2 additions & 2 deletions akamai-github/terraform/vault/oidc-groups.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "vault_identity_group" "developers" {
name = "developers"
name = "<DEVELOPER-TEAM>"
type = "internal"
policies = ["developer"]

Expand All @@ -16,7 +16,7 @@ resource "vault_identity_group" "developers" {
}

resource "vault_identity_group" "admins" {
name = "admins"
name = "<ADMIN_TEAM>"
type = "internal"
policies = ["admin"]

Expand Down
23 changes: 23 additions & 0 deletions akamai-gitlab/atlantis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: 3
automerge: true
projects:
- dir: terraform/<CLOUD_PROVIDER>
terraform_version: 1.3.8
autoplan:
enabled: true
when_modified: ['**/*.tf', '*.tf*']
- dir: terraform/<GIT_PROVIDER>
terraform_version: 1.3.8
autoplan:
enabled: true
when_modified: ['**/*.tf', '*.tf*']
- dir: terraform/users
terraform_version: 1.3.8
autoplan:
enabled: true
when_modified: ['**/*.tf', '**/modules/*.tf', '**/admins/*.tf', '**/developers/*.tf', '*.tf*']
- dir: terraform/vault
terraform_version: 1.3.8
autoplan:
enabled: true
when_modified: ['**/*.tf', '*.tf*']
Empty file.
21 changes: 21 additions & 0 deletions akamai-gitlab/registry/environments/development/docker-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: development-docker-config
spec:
refreshInterval: 10s
secretStoreRef:
name: vault-kv-secret
kind: ClusterSecretStore
target:
template:
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: "{{ .dockerconfig | toString }}"
name: docker-config
creationPolicy: Owner
data:
- secretKey: "dockerconfig"
remoteRef:
property: dockerconfig
key: dockerconfigjson
24 changes: 24 additions & 0 deletions akamai-gitlab/registry/environments/development/metaphor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: development-environment-metaphor
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
annotations:
argocd.argoproj.io/sync-wave: '45'
spec:
project: default
source:
repoURL: <GITOPS_REPO_URL>
path: registry/environments/development/metaphor
targetRevision: HEAD
destination:
name: in-cluster
namespace: development
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v2
dependencies:
- name: metaphor
repository: http://chartmuseum.chartmuseum.svc.cluster.local:8080
version: 0.0.1-rc.awaiting-ci
description: metaphor example application
name: metaphor
type: application
version: 1.0.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
metaphor:
annotations: |
linkerd.io/inject: "enabled"
labels: |
mirror.linkerd.io/exported: "true"
image:
repository: <CONTAINER_REGISTRY_URL>/metaphor
imagePullSecrets:
- name: docker-config
ingress:
className: nginx
enabled: true
annotations:
<CERT_MANAGER_ISSUER_ANNOTATION_1>
<CERT_MANAGER_ISSUER_ANNOTATION_2>
<CERT_MANAGER_ISSUER_ANNOTATION_3>
<CERT_MANAGER_ISSUER_ANNOTATION_4>
nginx.ingress.kubernetes.io/service-upstream: "true"
hosts:
- host: metaphor-development.<DOMAIN_NAME>
paths:
- path: /
pathType: Prefix
tls:
- secretName: metaphor-tls
hosts:
- metaphor-development.<DOMAIN_NAME>
metaphor:
host: https://metaphor-development.<DOMAIN_NAME>/api
console: https://kubefirst.<DOMAIN_NAME>

clusterSecretStoreName: vault-kv-secret
vaultSecretPath: development/metaphor
configs:
configOne: development-config-one
configTwo: development-config-two
21 changes: 21 additions & 0 deletions akamai-gitlab/registry/environments/production/docker-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: production-docker-config
spec:
refreshInterval: 10s
secretStoreRef:
name: vault-kv-secret
kind: ClusterSecretStore
target:
template:
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: "{{ .dockerconfig | toString }}"
name: docker-config
creationPolicy: Owner
data:
- secretKey: "dockerconfig"
remoteRef:
property: dockerconfig
key: dockerconfigjson
24 changes: 24 additions & 0 deletions akamai-gitlab/registry/environments/production/metaphor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: production-environment-metaphor
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
annotations:
argocd.argoproj.io/sync-wave: "45"
spec:
project: default
source:
repoURL: <GITOPS_REPO_URL>
path: registry/environments/production/metaphor
targetRevision: HEAD
destination:
name: in-cluster
namespace: production
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v2
dependencies:
- name: metaphor
repository: http://chartmuseum.chartmuseum.svc.cluster.local:8080
version: 0.0.1-rc.awaiting-ci
description: metaphor example application
name: metaphor
type: application
version: 1.0.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
metaphor:
annotations: |
linkerd.io/inject: "enabled"
labels: |
mirror.linkerd.io/exported: "true"
image:
repository: <CONTAINER_REGISTRY_URL>/metaphor
imagePullSecrets:
- name: docker-config
ingress:
className: nginx
enabled: true
annotations:
<CERT_MANAGER_ISSUER_ANNOTATION_1>
<CERT_MANAGER_ISSUER_ANNOTATION_2>
<CERT_MANAGER_ISSUER_ANNOTATION_3>
<CERT_MANAGER_ISSUER_ANNOTATION_4>
nginx.ingress.kubernetes.io/service-upstream: "true"
hosts:
- host: metaphor-production.<DOMAIN_NAME>
paths:
- path: /
pathType: Prefix
tls:
- secretName: metaphor-tls
hosts:
- metaphor-production.<DOMAIN_NAME>
metaphor:
host: https://metaphor-production.<DOMAIN_NAME>/api
console: https://kubefirst.<DOMAIN_NAME>

clusterSecretStoreName: vault-kv-secret
vaultSecretPath: production/metaphor
configs:
configOne: production-config-one
configTwo: production-config-two
21 changes: 21 additions & 0 deletions akamai-gitlab/registry/environments/staging/docker-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: staging-docker-config
spec:
refreshInterval: 10s
secretStoreRef:
name: vault-kv-secret
kind: ClusterSecretStore
target:
template:
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: "{{ .dockerconfig | toString }}"
name: docker-config
creationPolicy: Owner
data:
- secretKey: "dockerconfig"
remoteRef:
property: dockerconfig
key: dockerconfigjson
Loading