Skip to content

Commit

Permalink
Merge pull request #10312 from srikiz/DO-Move-to-Beta
Browse files Browse the repository at this point in the history
[Digital Ocean] Promote to Beta
  • Loading branch information
k8s-ci-robot committed Dec 4, 2020
2 parents c1b4dd6 + d89ff94 commit 77b6da4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
20 changes: 15 additions & 5 deletions docs/getting_started/digitalocean.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Getting Started with kOps on DigitalOcean

**WARNING**: digitalocean support on kOps is currently **alpha** meaning it is in the early stages of development and subject to change, please use with caution.
**WARNING**: digitalocean support on kOps promoted to **beta** currently meaning it is subject to change, so please use with caution.

## Requirements

Expand All @@ -23,9 +23,6 @@ export DIGITALOCEAN_ACCESS_TOKEN=<access-token> # where <access-token> is the a
export S3_ENDPOINT=nyc3.digitaloceanspaces.com # this can also be ams3.digitaloceanspaces.com or sgp1.digitaloceanspaces.com depending on where you created your Spaces bucket
export S3_ACCESS_KEY_ID=<access-key-id> # where <access-key-id> is the Spaces API Access Key for your bucket
export S3_SECRET_ACCESS_KEY=<secret-key> # where <secret-key> is the Spaces API Secret Key for your bucket

# this is required since DigitalOcean support is currently in alpha so it is feature gated
export KOPS_FEATURE_FLAGS="AlphaAllowDO"
```

## Creating a Single Master Cluster
Expand All @@ -46,8 +43,21 @@ kops update cluster my-cluster.example.com --yes
kops create cluster --cloud=digitalocean --name=my-cluster.example.com --image=debian-9-x64 --networking=flannel --zones=ams3 --ssh-public-key=~/.ssh/id_rsa.pub --node-size=c-4
kops update cluster my-cluster.example.com --yes

# to validate a cluster
kops validate cluster my-cluster.example.com

# to delete a cluster
kops delete cluster my-cluster.example.com --yes

# to export kubecfg
* follow steps as mentioned [here](https://kops.sigs.k8s.io/cli/kops_export_kubecfg/#examples).

# to update a cluster
* follow steps as mentioned [here](https://kops.sigs.k8s.io/operations/updates_and_upgrades/#manual-update)

# to install csi driver for DO block storage
* follow steps as mentiond [here](https://github.com/digitalocean/csi-digitalocean#installing-to-kubernetes)

```
## Creating a Multi-Master HA Cluster
Expand All @@ -67,7 +77,7 @@ kops delete cluster dev5.k8s.local --yes
kOps for DigitalOcean currently does not support these features:
* rolling update for instance groups
* kops terraform support for DO
# Next steps
Expand Down
6 changes: 0 additions & 6 deletions upup/pkg/fi/cloudup/apply_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ const (
)

var (
// AlphaAllowDO is a feature flag that gates DigitalOcean support while it is alpha
AlphaAllowDO = featureflag.New("AlphaAllowDO", featureflag.Bool(false))
// AlphaAllowGCE is a feature flag that gates GCE support while it is alpha
AlphaAllowGCE = featureflag.New("AlphaAllowGCE", featureflag.Bool(false))
// AlphaAllowALI is a feature flag that gates aliyun support while it is alpha
Expand Down Expand Up @@ -392,10 +390,6 @@ func (c *ApplyClusterCmd) Run(ctx context.Context) error {

case kops.CloudProviderDO:
{
if !AlphaAllowDO.Enabled() {
return fmt.Errorf("DigitalOcean support is currently (very) alpha and is feature-gated. export KOPS_FEATURE_FLAGS=AlphaAllowDO to enable it")
}

if len(sshPublicKeys) == 0 && (c.Cluster.Spec.SSHKeyName == nil || *c.Cluster.Spec.SSHKeyName == "") {
return fmt.Errorf("SSH public key must be specified when running with DigitalOcean (create with `kops create secret --name %s sshpublickey admin -i ~/.ssh/id_rsa.pub`)", cluster.ObjectMeta.Name)
}
Expand Down

0 comments on commit 77b6da4

Please sign in to comment.