open-nomad/demo/csi/digitalocean
Seth Hoenig 65f7abf2f4 cli: update default redis and use nomad service discovery
Closes #12927
Closes #12958

This PR updates the version of redis used in our examples from 3.2 to 7.
The old version is very not supported anymore, and we should be setting
a good example by using a supported version.

The long-form example job is now fixed so that the service stanza uses
nomad as the service discovery provider, and so now the job runs without
a requirement of having Consul running and configured.
2022-05-17 10:24:19 -05:00
..
.gitignore demo: CSI example for DigitalOcean block storage (#9351) 2020-11-13 12:26:04 -05:00
.terraform.lock.hcl Update terraform configuration for demo/csi/digitalocean (#11093) 2021-08-29 06:15:34 -04:00
README.md demo: CSI example for DigitalOcean block storage (#9351) 2020-11-13 12:26:04 -05:00
main.tf Update terraform configuration for demo/csi/digitalocean (#11093) 2021-08-29 06:15:34 -04:00
plugin.nomad CSI: set plugin `CSI_ENDPOINT` env var only if unset by user (#12257) 2022-03-21 11:48:47 -04:00
terraform.tf demo: CSI example for DigitalOcean block storage (#9351) 2020-11-13 12:26:04 -05:00
variables.tf demo: CSI example for DigitalOcean block storage (#9351) 2020-11-13 12:26:04 -05:00
versions.tf demo: CSI example for DigitalOcean block storage (#9351) 2020-11-13 12:26:04 -05:00
volume-job.nomad cli: update default redis and use nomad service discovery 2022-05-17 10:24:19 -05:00

README.md

CSI on DigitalOcean

This is a Terraform demo for deploying CSI volumes on DigitalOcean. It asssumes you already have a Nomad cluster running with the Docker task driver. You will need a DigitalOcean account and a DigitalOcean API key.

Deploy the demo:

export NOMAD_ADDR=http://${IP_ADDRESS}:4646
terraform apply -var do_token=${DIGITALOCEAN_TOKEN}

See the volume is registered:

$ nomad volume status nomad-csi
ID                   = nomad-csi-test
Name                 = nomad-csi-test
External ID          = 58c4ef75-25d1-11eb-a381-0a58ac1449b9
Plugin ID            = digitalocean
Provider             = dobs.csi.digitalocean.com
Version              = v2.1.1
Schedulable          = true
Controllers Healthy  = 1
Controllers Expected = 1
Nodes Healthy        = 1
Nodes Expected       = 1
Access Mode          = single-node-writer
Attachment Mode      = block-device
Mount Options        = <none>
Namespace            = default

Allocations
ID        Node ID   Task Group  Version  Desired  Status   Created  Modified
8d223dc7  ce46add9  cache       0        run      running  21s ago  3s ago