-
Notifications
You must be signed in to change notification settings - Fork 431
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
Adds support for provisioning single master clusters on Azure through clusterctl #2
Merged
Merged
Changes from 15 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
612e5c6
refactor wrappers to be in their own directory, add more unit tests
414e8c8
run gofmt
279219a
add more tests
771ddda
bootstrap kubernetes on internal cluster but with no dns
7f20a84
refactor directory structure
451efaa
update to support new directory structure
96c4757
use new controller images and add logging for startup script
2a35de8
make kuberouter apply correctly in the startup script
d829cbb
disable password authentication on VMs
8ada346
move unit testing out of travis_wait
1ded36e
change testing flags to remove unnecessary logging
91d81b5
switch go version
03b1792
fix tests failing to compile in travis due to ignoring key* which unt…
c827f2a
change test machines to only use one master no node
4ee9ad5
remove unusued test until support is added
dc3bfac
specify sshkey is public key, change to use go 1.10.2 in travis, add …
4f463fc
change to go 1.10.2
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
generatedconfigs/ | ||
.env | ||
kubeconfig | ||
minikube.kubeconfig | ||
.travis.yml |
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,5 +1,8 @@ | ||
*.test | ||
.idea/ | ||
.env | ||
exampleconfigs/provider-components.yaml | ||
minikube.kubeconfig | ||
generatedconfigs/ | ||
generatedconfigs/ | ||
sshkey* | ||
kubeconfig |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
File renamed without changes.
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 |
---|---|---|
|
@@ -66,10 +66,6 @@ | |
"defaultValue": null, | ||
"type":"string" | ||
}, | ||
"vm_password": { | ||
"defaultValue": null, | ||
"type": "string" | ||
}, | ||
"vm_size": { | ||
"defaultValue": null, | ||
"type": "string" | ||
|
@@ -81,6 +77,10 @@ | |
"startup_script": { | ||
"defaultValue": null, | ||
"type": "string" | ||
}, | ||
"sshKeyData": { | ||
"defaultValue": null, | ||
"type": "string" | ||
} | ||
}, | ||
"variables": {}, | ||
|
@@ -117,9 +117,16 @@ | |
"osProfile": { | ||
"computerName": "[parameters('virtualMachines_ClusterAPIVM_name')]", | ||
"adminUsername": "[parameters('vm_user')]", | ||
"adminPassword": "[parameters('vm_password')]", | ||
"linuxConfiguration": { | ||
"disablePasswordAuthentication": false | ||
"disablePasswordAuthentication": true, | ||
"ssh": { | ||
"publicKeys": [ | ||
{ | ||
"path": "[concat('/home/', parameters('vm_user'), '/.ssh/authorized_keys')]", | ||
"keyData": "[parameters('sshKeyData')]" | ||
} | ||
] | ||
} | ||
}, | ||
"secrets": [] | ||
}, | ||
|
@@ -375,6 +382,28 @@ | |
"[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_ClusterAPIVM_nsg_name'))]" | ||
] | ||
}, | ||
{ | ||
"type": "Microsoft.Network/networkSecurityGroups/securityRules", | ||
"name": "[concat(parameters('networkSecurityGroups_ClusterAPIVM_nsg_name'), '/kubernetes')]", | ||
"apiVersion": "2017-06-01", | ||
"scale": null, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"protocol": "TCP", | ||
"sourcePortRange": "*", | ||
"destinationPortRange": "6443", | ||
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. What is this port for? Can you add a comment? Would this be something that a user might want to configure? |
||
"sourceAddressPrefix": "*", | ||
"destinationAddressPrefix": "*", | ||
"access": "Allow", | ||
"priority": 1001, | ||
"direction": "Inbound", | ||
"sourceAddressPrefixes": [], | ||
"destinationAddressPrefixes": [] | ||
}, | ||
"dependsOn": [ | ||
"[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_ClusterAPIVM_nsg_name'))]" | ||
] | ||
}, | ||
{ | ||
"type": "Microsoft.Network/virtualNetworks/subnets", | ||
"name": "[concat(parameters('virtualNetworks_ClusterAPIVM_vnet_name'), '/', parameters('subnets_default_name'))]", | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Can you rename this to
sshPublicKey
? Or is itssh_public_key
?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.
Renamed to
sshPublicKey