diff --git a/docs/tutorial/digitalocean.md b/docs/tutorial/digitalocean.md index 645ec3b382b2e..52f644749d631 100644 --- a/docs/tutorial/digitalocean.md +++ b/docs/tutorial/digitalocean.md @@ -24,9 +24,8 @@ export S3_ENDPOINT=nyc3.digitaloceanspaces.com # this can also be ams3.digitaloc export S3_ACCESS_KEY_ID= # where is the Spaces API Access Key for your bucket export S3_SECRET_ACCESS_KEY= # where is the Spaces API Secret Key for your bucket -# this is required since DigitalOcean support is currently in alpha so it is feature gated, also need Override flag to use legacy etcd. -# we will eventually support etcdmanager, but until then, we need to specify this flag. -export KOPS_FEATURE_FLAGS="AlphaAllowDO,+SpecOverrideFlag" +# this is required since DigitalOcean support is currently in alpha so it is feature gated +export KOPS_FEATURE_FLAGS="AlphaAllowDO" ``` ## Creating a Cluster @@ -36,15 +35,15 @@ Note that you kops will only be able to successfully provision clusters in regio ```bash # coreos (the default) + flannel overlay cluster in tor1 -kops create cluster --cloud=digitalocean --name=my-cluster.example.com --networking=flannel --zones=tor1 --ssh-public-key=~/.ssh/id_rsa.pub --override cluster.spec.etcdClusters[*].provider=Legacy +kops create cluster --cloud=digitalocean --name=my-cluster.example.com --networking=flannel --zones=tor1 --ssh-public-key=~/.ssh/id_rsa.pub kops update cluster my-cluster.example.com --yes # ubuntu + weave overlay cluster in nyc1 using larger droplets -kops create cluster --cloud=digitalocean --name=my-cluster.example.com --image=ubuntu-16-04-x64 --networking=weave --zones=nyc1 --ssh-public-key=~/.ssh/id_rsa.pub --node-size=s-8vcpu-32gb --override cluster.spec.etcdClusters[*].provider=Legacy +kops create cluster --cloud=digitalocean --name=my-cluster.example.com --image=ubuntu-16-04-x64 --networking=weave --zones=nyc1 --ssh-public-key=~/.ssh/id_rsa.pub --node-size=s-8vcpu-32gb kops update cluster my-cluster.example.com --yes # debian + flannel overlay cluster in ams3 using optimized droplets -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 --override cluster.spec.etcdClusters[*].provider=Legacy +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 delete a cluster diff --git a/pkg/model/components/etcdmanager/model.go b/pkg/model/components/etcdmanager/model.go index 35d376aee9b1e..98befffcb4b86 100644 --- a/pkg/model/components/etcdmanager/model.go +++ b/pkg/model/components/etcdmanager/model.go @@ -394,7 +394,7 @@ func (b *EtcdManagerBuilder) buildPod(etcdCluster *kops.EtcdClusterSpec) (*v1.Po config.VolumeProvider = "do" config.VolumeTag = []string{ - fmt.Sprintf("kubernetes.io/cluster/%s=owned", b.Cluster.Name), + fmt.Sprintf("kubernetes.io/cluster=%s", b.Cluster.Name), do.TagNameEtcdClusterPrefix + etcdCluster.Name, do.TagNameRolePrefix + "master=1", } @@ -478,6 +478,9 @@ func (b *EtcdManagerBuilder) buildPod(etcdCluster *kops.EtcdClusterSpec) (*v1.Po container.Env = appendEnvVariableIfExist("OS_AUTH_URL", container.Env) container.Env = appendEnvVariableIfExist("OS_REGION_NAME", container.Env) + // Digital Ocean related values. + container.Env = appendEnvVariableIfExist("DIGITALOCEAN_ACCESS_TOKEN", container.Env) + { foundPKI := false for i := range pod.Spec.Volumes {