Skip to content

Commit

Permalink
yaml for vm with dpndncies
Browse files Browse the repository at this point in the history
  • Loading branch information
haagha committed Jul 10, 2020
1 parent 4d07fc8 commit 4025718
Showing 1 changed file with 51 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
apiVersion: azure.microsoft.com/v1alpha1
kind: AzurePublicIPAddress
metadata:
name: nic-pip-sample-01
spec:
location: SouthCentralUS
resourceGroup: resourcegroup-azure-operators
publicIPAllocationMethod: "Static"
idleTimeoutInMinutes: 10
publicIPAddressVersion: "IPv4"
skuName: "Basic"
---
apiVersion: azure.microsoft.com/v1alpha1
kind: VirtualNetwork
metadata:
name: vnet-sample-01
spec:
location: SouthCentralUS
resourceGroup: resourcegroup-azure-operators
addressSpace: "10.0.0.0/8"
subnets:
- subnetName: test1
subnetAddressPrefix: "10.1.0.0/16"
- subnetName: test2
subnetAddressPrefix: "10.2.0.0/16"
---
apiVersion: azure.microsoft.com/v1alpha1
kind: AzureNetworkInterface
metadata:
name: nic-sample-01
spec:
location: SouthCentralUS
resourceGroup: resourcegroup-azure-operators
vnetName: vnet-sample-01
subnetName: test1
publicIPAddressName: nic-pip-sample-01
---
apiVersion: azure.microsoft.com/v1alpha1
kind: AzureVirtualMachine
metadata:
name: hpfvm1
spec:
location: SouthCentralUS
resourceGroup: resourcegroup-azure-operators
vmSize: Standard_DS1_v2
osType: Linux
adminUserName: azureuser
# SSH public key to be used with VM (eg cat ~/.ssh/id_rsa.pub)
sshPublicKeyData: {ssh key}
networkInterfaceName: nic-sample-01
platformImageURN: Canonical:UbuntuServer:16.04-LTS:latest

0 comments on commit 4025718

Please sign in to comment.