-
Notifications
You must be signed in to change notification settings - Fork 10
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
Runtime CR examples updated #345
Changes from 6 commits
e4f5f53
0231028
5ede97f
5768dde
4fa5da6
e20a3a0
4844979
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
apiVersion: infrastructuremanager.kyma-project.io/v1alpha1 | ||
apiVersion: infrastructuremanager.kyma-project.io/v1 | ||
kind: Runtime | ||
metadata: | ||
labels: | ||
kyma-project.io/controlled-by-provisioner: "false" | ||
kyma-project.io/instance-id: instance-id | ||
kyma-project.io/runtime-id: runtime-id | ||
kyma-project.io/broker-plan-id: plan-id | ||
kyma-project.io/broker-plan-name: plan-name | ||
kyma-project.io/global-account-id: global-account-id | ||
kyma-project.io/subaccount-id: subAccount-id | ||
kyma-project.io/shoot-name: shoot-name | ||
kyma-project.io/shoot-name: azure-fremium | ||
kyma-project.io/region: region | ||
operator.kyma-project.io/kyma-name: kymaName | ||
name: runtime-id | ||
name: azure-fremium | ||
namespace: kcp-system | ||
spec: | ||
shoot: | ||
# spec.shoot.name is set required | ||
name: shoot-name | ||
name: azure-fremium | ||
# spec.shoot.purpose is required | ||
purpose: evaluation | ||
# spec.shoot.region is required | ||
region: eu-central-1 | ||
region: polandcentral | ||
# spec.shoot.platformRegion is required | ||
platformRegion: "cf-us10" | ||
# spec.shoot.secretBindingName is required | ||
|
@@ -41,11 +42,22 @@ spec: | |
# spec.shoot.provider.workers is required | ||
workers: | ||
- machine: | ||
# spec.shoot.workers.machine.type is required | ||
type: mx5.large | ||
# spec.shoot.workers.machine.type is required | ||
type: Standard_D2s_v5 | ||
# spec.shoot.workers.machine.image is optional, when not provider default will be used | ||
# Will be modified by the SRE | ||
image: | ||
name: gardenlinux | ||
version: 1443.9.0 | ||
name: "worker-0" | ||
# spec.shoot.workers.volume is required for the first release | ||
# Probably can be moved into KIM, as it is hardcoded in KEB, and not dependent on plan | ||
volume: | ||
type: Standard_LRS | ||
size: 50Gi | ||
# spec.shoot.worker.zones is required | ||
zones: | ||
- 1 | ||
- "1" | ||
# spec.shoot.workers.minimum is required | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this quotation necessary? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, couldn't we use the actual regions here to omit the number of things someone has to change in the CR to make it work? We have such zones listed in e.g. aws-trial example There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When quotation is missed we will get the following error:
Kubernetes expects string field, as
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
We do use actual regions. |
||
minimum: 1 | ||
# spec.shoot.workers.maximum is required | ||
|
@@ -58,6 +70,7 @@ spec: | |
maxUnavailable: 0 | ||
# spec.shoot.Networking is required | ||
networking: | ||
type: calico | ||
pods: 10.96.0.0/13 | ||
nodes: 10.250.0.0/22 | ||
services: 10.104.0.0/13 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
apiVersion: infrastructuremanager.kyma-project.io/v1alpha1 | ||
apiVersion: infrastructuremanager.kyma-project.io/v1 | ||
kind: Runtime | ||
metadata: | ||
labels: | ||
kyma-project.io/controlled-by-provisioner: "false" | ||
kyma-project.io/instance-id: instance-id | ||
kyma-project.io/runtime-id: runtime-id | ||
kyma-project.io/broker-plan-id: plan-id | ||
kyma-project.io/broker-plan-name: plan-name | ||
kyma-project.io/global-account-id: global-account-id | ||
kyma-project.io/subaccount-id: subAccount-id | ||
kyma-project.io/shoot-name: shoot-name | ||
kyma-project.io/shoot-name: azure-lite | ||
kyma-project.io/region: region | ||
operator.kyma-project.io/kyma-name: kymaName | ||
name: runtime-id | ||
name: azure-lite | ||
namespace: kcp-system | ||
spec: | ||
shoot: | ||
# spec.shoot.name is required | ||
name: shoot-name | ||
name: azure-lite | ||
# spec.shoot.purpose is required | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Fixed |
||
purpose: production | ||
# spec.shoot.region is required | ||
|
@@ -50,15 +51,15 @@ spec: | |
# Will be modified by the SRE | ||
image: | ||
name: gardenlinux | ||
version: 1312.3.0 | ||
version: 1443.9.0 | ||
# spec.shoot.workers.volume is required for the first release | ||
# Probably can be moved into KIM, as it is hardcoded in KEB, and not dependent on plan | ||
volume: | ||
type: Standard_LRS | ||
size: 50Gi | ||
# spec.shoot.worker.zones is required | ||
zones: | ||
- 1 | ||
- "1" | ||
# spec.shoot.workers.name is optional, if not provided default will be used | ||
name: cpu-worker-0 | ||
# spec.shoot.workers.minimum is required | ||
|
@@ -73,6 +74,7 @@ spec: | |
maxUnavailable: 0 | ||
# spec.shoot.Networking is required | ||
networking: | ||
type: calico | ||
pods: 10.96.0.0/13 | ||
nodes: 10.250.0.0/22 | ||
services: 10.104.0.0/13 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what was your intention with this change?