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

Update local crds #50

Merged
merged 2 commits into from
Mar 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 95 additions & 0 deletions local/client/dummy-crd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
apiVersion: registry.ethos.adobe.com/v1
kind: Cluster
metadata:
name: cluster01-local-useast1
namespace: cluster-registry
spec:
name: cluster01-local-useast1
shortName: cluster01localuseast1
apiServer:
endpoint: https://cluster01-local-useast1.example.com
certificateAuthorityData: LS0tLS1CRUdJTiBDRVJUSUZJ==
region: useast1
cloudType: azure
cloudProviderRegion: useast1
environment: local
type: Shared
businessUnit: BU1
offering:
- CaaS
- PaaS
allowedOnboardingTeams:
- name: my-team
ldapGroups:
- LDAP_GROUP_EXAMPLE_1:GROUP_ID1
- LDAP_GROUP_EXAMPLE_2:GROUP_ID2
capabilities:
- vpc-peering
- gpu-compute
extra:
loggingEndpoints:
- region: useast1
endpoint: splunk-us-east1.example.com
isDefault: "true"
- region: useast2
endpoint: splunk-us-east2.example.com
isDefault: "false"
domainName: example.com
ecrIamArns:
iamRoles:
- "arn:aws:iam::account-id:role/xxx"
- "arn:aws:iam::account-id:role/yyy"
iamUser:
- "arn:aws:iam::111222333:user/ecr-login"
lbEndpoints:
public: cluster01-local-useast1.example.com
egressPorts: "1024-65535"
nfsInfo:
- name: xxxss5
basePath: xyz
endpoint: xyz
tiers:
- name: worker
containerRuntime: cri-o
instanceType: c5.9xlarge
maxCapacity: 1000
minCapacity: 3
- name: workerMemoryOptimized
containerRuntime: docker
instanceType: r5.8xlarge
labels:
node.kubernetes.io/workload.memory-optimized: "true"
maxCapacity: 100
minCapacity: 0
taints:
- workload=memory-optimized:NoSchedule
accountId: "11111-2222-3333-4444-555555555"
virtualNetworks:
- id: "/subscriptions/11111-2222-3333-4444-555555555/resourceGroups/cluster01_local_network/providers/Microsoft.Network/virtualNetworks/cluster01_local_useast1-vnet/subnets/cluster01_local_useast1_master_network_10_0_0_0_24"
cidrs:
- 10.0.0.0/24
- id: "/subscriptions/11111-2222-3333-4444-555555555/resourceGroups/cluster01_local_network/providers/Microsoft.Network/virtualNetworks/cluster01_local_useast1-vnet/subnets/cluster01_local_useast1_worker_network_10_1_0_0_24"
cidrs:
- 10.1.0.0/24
peerVirtualNetworks:
- id: 123r
cidrs:
- 10.2.0.1/23
- 10.3.0.1/24
ownerID: ownerxxx
registeredAt: "2021-12-13T05:50:07.492Z"
lastUpdated: "2021-12-13T05:50:07.492Z"
managingOrg: Ethos
k8sInfraRelease:
gitSha: 1e8cbd109d7a77909f627ec5247520b70cc209e9
lastUpdated: "2021-03-22T11:55:41Z"
release: 2021-W06-0-116-gd0c7e403
capacity:
clusterCapacity: 50
clusterProvisioning: 30
lastUpdated: "2023-03-22T11:55:41Z"
status: Active
phase: Running
tags:
onboarding: "off"
scaling: "off"
40 changes: 29 additions & 11 deletions local/database/dummy-data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@
certificateAuthorityData: LS0tLS1CRUdJTiBDRVJUSUZJ==
region: useast1
cloudType: azure
cloudProviderRegion: useast1
environment: Prod
type: Shared
businessUnit: BU1
offering:
- caas
- paas
- CaaS
- PaaS
allowedTeams:
- name: my-team
gitTeams:
Expand Down Expand Up @@ -52,17 +53,17 @@
endpoint: xyz
tiers:
- name: worker
containerRuntime: cri-o
instanceType: c5.9xlarge
maxCapacity: 1000
minCapacity: 3
rootDeviceSize: 200
- name: workerMemoryOptimized
containerRuntime: cri-o
instanceType: r5.8xlarge
labels:
node.kubernetes.io/workload.memory-optimized: "true"
maxCapacity: 100
minCapacity: 0
rootDeviceSize: 200
taints:
- workload=memory-optimized:NoSchedule
accountId: "11111-2222-3333-4444-555555555"
Expand All @@ -81,10 +82,15 @@
ownerID: ownerxxx
registeredAt: "2021-12-13T05:50:07.492Z"
lastUpdated: "2021-12-13T05:50:07.492Z"
managingOrg: Ethos
k8sInfraRelease:
gitSha: 1e8cbd109d7a77909f627ec5247520b70cc209e9
lastUpdated: "2021-03-22T11:55:41Z"
release: 2021-W06-0-116-gd0c7e403
capacity:
clusterCapacity: 50
clusterProvisioning: 30
lastUpdated: "2023-03-22T11:55:41Z"
status: Active
phase: Running
tags:
Expand All @@ -103,12 +109,13 @@
certificateAuthorityData: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0==
region: euwest1
cloudType: azure
cloudProviderRegion: euwest1
environment: Prod
type: Dedicated
businessUnit: BU2
offering:
- caas
- paas
- CaaS
- PaaS
allowedTeams:
- name: my-team
gitTeams:
Expand All @@ -130,17 +137,17 @@
public: cluster02-prod-euwest1.example.com
tiers:
- name: worker
containerRuntime: cri-o
instanceType: c5.9xlarge
maxCapacity: 1000
minCapacity: 3
rootDeviceSize: 200
- name: workerMemoryOptimized
containerRuntime: cri-o
instanceType: r5.8xlarge
labels:
node.kubernetes.io/workload.memory-optimized: "true"
maxCapacity: 100
minCapacity: 0
rootDeviceSize: 200
taints:
- workload=memory-optimized:NoSchedule
accountId: "11111-2222-3333-4444-55555555"
Expand All @@ -150,10 +157,15 @@
- 10.3.0.0/24
registeredAt: "2019-02-10T06:15:32Z"
lastUpdated: "2020-02-10T06:15:32Z"
managingOrg: Ethos
k8sInfraRelease:
gitSha: 1e8cbd109d7a77909f627ec5247520b70cc209e9
lastUpdated: "2021-03-22T11:55:41Z"
release: 2021-W06-0-116-gd0c7e403
capacity:
clusterCapacity: 50
clusterProvisioning: 20
lastUpdated: "2023-03-22T11:55:41Z"
status: Active
phase: Upgrading
tags:
Expand All @@ -172,11 +184,12 @@
certificateAuthorityData: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS==
region: uswest1
cloudType: aws
cloudProviderRegion: uswest1
environment: Prod
type: Dedicated
businessUnit: BU1
offering:
- paas
- PaaS
allowedTeams:
- name: my-team
gitTeams:
Expand Down Expand Up @@ -210,28 +223,33 @@
isDefault: true
tiers:
- name: proxy
containerRuntime: cri-o
instanceType: r5a.4xlarge
maxCapacity: 200
minCapacity: 3
rootDeviceSize: 200
- name: worker
containerRuntime: cri-o
instanceType: c5.9xlarge
labels:
node.kubernetes.io/workload.memory-optimized: "true"
maxCapacity: 1000
minCapacity: 3
rootDeviceSize: 200
accountId: "12345678"
virtualNetworks:
- id: vpc-123456
cidrs:
- 10.0.22.0/8
registeredAt: "2020-03-19T07:55:46.132Z"
lastUpdated: "2020-03-20T07:55:46.132Z"
managingOrg: Ethos
k8sInfraRelease:
gitSha: 110bb4f33b2142dde01e74a9bae7148534c2685b
lastUpdated: "2021-03-22T11:55:41Z"
release: 2021-W06-0-116-gd0c7e403
capacity:
clusterCapacity: 30
clusterProvisioning: 30
lastUpdated: "2023-03-22T11:55:41Z"
status: Active
phase: Running
tags:
Expand Down