-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from packethost/examples
update examples and README for XP 1.2 and EM provider 0.0.7
- Loading branch information
Showing
6 changed files
with
122 additions
and
47 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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,14 @@ | ||
--- | ||
apiVersion: ports.metal.equinix.com/v1alpha1 | ||
kind: Assignment | ||
metadata: | ||
name: crossplane-example-eth1-xp-vlan | ||
spec: | ||
forProvider: | ||
deviceIdRef: | ||
name: crossplane-example | ||
virtualNetworkIdRef: | ||
name: xp-vlan | ||
name: eth1 | ||
providerConfigRef: | ||
name: equinix-metal-provider |
This file contains 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 |
---|---|---|
@@ -1,17 +1,23 @@ | ||
--- | ||
apiVersion: server.metal.equinix.com/v1alpha2 | ||
kind: Device | ||
metadata: | ||
name: devicea | ||
namespace: app-project1-dev | ||
name: crossplane-example | ||
spec: | ||
forProvider: | ||
hostname: crossplane | ||
plan: c1.small.x86 | ||
facility: any | ||
locked: false | ||
operatingSystem: centos_7 | ||
hostname: crossplane-example | ||
plan: c3.small.x86 | ||
facility: sv15 | ||
operatingSystem: ubuntu_20_04 | ||
billingCycle: hourly | ||
hardware_reservation_id: next_available | ||
locked: false | ||
networkType: hybrid | ||
tags: | ||
- crossplane | ||
providerConfigRef: | ||
name: equinix-metal-provider | ||
writeConnectionSecretToRef: | ||
name: devicea-conn | ||
name: crossplane-example | ||
namespace: crossplane-system | ||
reclaimPolicy: Delete |
This file contains 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
export BASE64ENCODED_PACKET_PROVIDER_CREDS=$(base64 credentials.txt | tr -d "\n") | ||
sed "s/BASE64ENCODED_PACKET_PROVIDER_CREDS/$BASE64ENCODED_PACKET_PROVIDER_CREDS/g" provider.yaml | kubectl create -f - | ||
export BASE64ENCODED_METAL_PROVIDER_CREDS=$(base64 credentials.txt | tr -d "\n") | ||
sed "s/BASE64ENCODED_METAL_PROVIDER_CREDS/$BASE64ENCODED_METAL_PROVIDER_CREDS/g" provider.yaml | kubectl create -f - |
This file contains 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
This file contains 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,11 @@ | ||
--- | ||
apiVersion: vlan.metal.equinix.com/v1alpha1 | ||
kind: VirtualNetwork | ||
metadata: | ||
name: xp-vlan | ||
spec: | ||
forProvider: | ||
description: Example Crossplane provisioned VLAN | ||
facility: sv15 | ||
providerConfigRef: | ||
name: equinix-metal-provider |