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

add examples of eip #5

Merged
merged 8 commits into from
Oct 18, 2024
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
17 changes: 17 additions & 0 deletions examples/eip/globaleip.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: eip.huaweicloud.crossplane.io/v1alpha1
kind: GlobalEip
metadata:
annotations:
meta.upbound.io/example-id: eip/v1alpha1/globaleip
labels:
testing.upbound.io/example-name: test
name: test
spec:
forProvider:
accessSite: your_access_site
enterpriseProjectId: your_enterprise_project_id
geipPoolName: your_geip_pool_name
internetBandwidthId: your_internet_bandwidth_id
name: test
tags:
foo: bar
23 changes: 23 additions & 0 deletions examples/eip/globaleipassociate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: eip.huaweicloud.crossplane.io/v1alpha1
kind: GlobalEipAssociate
metadata:
annotations:
meta.upbound.io/example-id: eip/v1alpha1/globaleipassociate
labels:
testing.upbound.io/example-name: test
name: test
spec:
forProvider:
associateInstance:
- instanceId: your_instance_id
instanceType: ECS
projectId: your_project_id
region: your_region
gcBandwidth:
- chargeMode: bwd
name: your_gc_bandwidth_name
size: 5
globalEipIdSelector:
matchLabels:
testing.upbound.io/example-name: example
isReserveGcb: false
20 changes: 20 additions & 0 deletions examples/eip/globalinternetbandwidth.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: eip.huaweicloud.crossplane.io/v1alpha1
kind: GlobalInternetBandwidth
metadata:
annotations:
meta.upbound.io/example-id: eip/v1alpha1/globalinternetbandwidth
labels:
testing.upbound.io/example-name: test
name: test
spec:
forProvider:
accessSite: your_access_site
chargeMode: 95peak_guar
enterpriseProjectId: your_enterprise_project_id
isp: your_isp
name: test
size: 300
tags:
foo: bar
key: value
type: your_allowed_bandwidth_type
12 changes: 12 additions & 0 deletions examples/eip/vpcbandwidth.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: eip.huaweicloud.crossplane.io/v1alpha1
kind: VpcBandwidth
metadata:
annotations:
meta.upbound.io/example-id: eip/v1alpha1/vpcbandwidth
labels:
testing.upbound.io/example-name: bandwidth_1
name: bandwidth-1
spec:
forProvider:
name: bandwidth_1
size: 5
31 changes: 31 additions & 0 deletions examples/eip/vpcbandwidthassociate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: eip.huaweicloud.crossplane.io/v1alpha1
kind: VpcBandwidthAssociate
metadata:
annotations:
meta.upbound.io/example-id: eip/v1alpha1/vpcbandwidthassociate
labels:
testing.upbound.io/example-name: test
name: test
spec:
forProvider:
bandwidthIdSelector:
matchLabels:
testing.upbound.io/example-name: bandwidth_1
eipIdSelector:
matchLabels:
testing.upbound.io/example-name: dedicated

---

apiVersion: eip.huaweicloud.crossplane.io/v1alpha1
kind: VpcBandwidth
metadata:
annotations:
meta.upbound.io/example-id: eip/v1alpha1/vpcbandwidthassociate
labels:
testing.upbound.io/example-name: test
name: test
spec:
forProvider:
name: bandwidth_1
size: 100
17 changes: 17 additions & 0 deletions examples/eip/vpceip.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: eip.huaweicloud.crossplane.io/v1alpha1
kind: VpcEip
metadata:
annotations:
meta.upbound.io/example-id: eip/v1alpha1/vpceip
labels:
testing.upbound.io/example-name: dedicated
name: dedicated
spec:
forProvider:
bandwidth:
- chargeMode: traffic
name: crossplane-test
shareType: PER
size: 10
publicip:
- type: 5_bgp
14 changes: 14 additions & 0 deletions examples/eip/vpceipassociate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: eip.huaweicloud.crossplane.io/v1alpha1
kind: VpcEipAssociate
metadata:
annotations:
meta.upbound.io/example-id: eip/v1alpha1/vpceipassociate
labels:
testing.upbound.io/example-name: associated
name: associated
spec:
forProvider:
fixedIp: 192.168.0.196
networkId: 828907cc-40c9-42fe-8206-ecc1bdd30060
publicIp: 121.36.45.205
portId: ""
15 changes: 15 additions & 0 deletions examples/eip/vpceipv3associate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: eip.huaweicloud.crossplane.io/v1alpha1
kind: VpcEipV3Associate
metadata:
annotations:
meta.upbound.io/example-id: eip/v1alpha1/vpceipv3associate
labels:
testing.upbound.io/example-name: test
name: test
spec:
forProvider:
associateInstanceId: b28cf22e-e0a2-4347-bc8e-f927c9c61332
associateInstanceType: PORT
publicipIdSelector:
matchLabels:
testing.upbound.io/example-name: dedicated
15 changes: 15 additions & 0 deletions examples/eip/vpcinternetgateway.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: eip.huaweicloud.crossplane.io/v1alpha1
kind: VpcInternetGateway
metadata:
annotations:
meta.upbound.io/example-id: eip/v1alpha1/vpcinternetgateway
labels:
testing.upbound.io/example-name: test
name: test
spec:
forProvider:
addRoute: true
name: test
vpcIdSelector:
matchLabels:
testing.upbound.io/example-name: example
Loading