digital-ocean

Running a java application with spring-boot, and gradle on digitalocean

一世执手 提交于 2019-12-04 15:04:54
I am trying to build a restful service with eclipse, java, gradle, spring-boot and host it on a digital ocean server. I want to get a JSON response when I access the digital ocean url on a specific port or something, so I can do 123.456.78:90 and see JSON in the browser. When I run this in eclipse and access localhost, this works fine. Accessing localhost:port# gives the desired output, but I'm noticing differences in the console log from eclipse and when I run it on the server. From eclipse: 2016-01-24 09:42:56.245 INFO 7372 --- [ main] Keen.KeenAPICallTester : Starting KeenAPICallTester on *

Kubernetes simple authentication

孤街醉人 提交于 2019-12-04 13:06:50
I am using KUbernetes on a coreOs cluster hosted on DigitalOcean. And using this repo to set it up. I start the apiserver with the following line: /opt/bin/kube-apiserver --runtime-config=api/v1 --allow-privileged=true \ --insecure-bind-address=0.0.0.0 --insecure-port=8080 \ --secure-port=6443 --etcd-servers=http://127.0.0.1:2379 \ --logtostderr=true --advertise-address=${COREOS_PRIVATE_IPV4} \ --service-cluster-ip-range=10.100.0.0/16 --bind-address=0.0.0.0 The problem is that it accepts request from anyone! I want to be able to provide a simple user/password authentication. I have been

Ubuntu / DigitalOcean - Unable to fetch packages to install git on a fresh install

江枫思渺然 提交于 2019-12-04 12:38:54
Just started with a fresh install of Ubuntu 14.04 on my digitalocean droplet and I'm trying to install git . My first attempt failed to install some packages - root@Jedi:~# sudo apt-get install git-all ... ... E: Failed to fetch http://mirrors.digitalocean.com/ubuntu/pool/main/g/gcc-4.8/libgomp1_4.8.4-2ubuntu1~14.04.1_amd64.deb 404 Not Found [IP: 95.85.0.50 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? So I took the suggestion above and re-ran it with --fix-missing hoping that would fix it. No luck - still missing the package mentioned below. What

Terraform: Mount volume

情到浓时终转凉″ 提交于 2019-12-04 09:32:35
According to documentation, using terraform, I'm able to create a droplet on digital ocean: resource "digitalocean_volume" "foobar" { region = "nyc1" name = "baz" size = 100 description = "an example volume" } So, I'm also able to add a volume to it: resource "digitalocean_droplet" "foobar" { name = "baz" size = "1gb" image = "coreos-stable" region = "nyc1" volume_ids = ["${digitalocean_volume.foobar.id}"] } I'd like to know how to mount this on a desired location. I need to mount it automatically. I mean, when droplet is up I need to the volume is mounted. I was thinking about using chef...

DigitalOcean pod has unbound immediate PersistentVolumeClaims

狂风中的少年 提交于 2019-12-04 06:52:52
I am trying to run a Redis cluster in Kubernetes in DigitalOcean. As a poc, I simply tried running an example I found online ( https://github.com/sanderploegsma/redis-cluster/blob/master/redis-cluster.yml ), which is able to spin up the pods appropriately when running locally using minikube. However, when running it on Digital Ocean, I always get the following error: Warning FailedScheduling 3s (x8 over 17s) default-scheduler pod has unbound immediate PersistentVolumeClaims (repeated 4 times) Given that I am not changing anything, I am not sure why this would not work. Does anyone have any

Setting up a vagrant with a digitalocean image

喜夏-厌秋 提交于 2019-12-04 00:54:39
I dont know if this should be posted here or on another stack community so please let me know if its wrong posting it here. How do I get a local (i.e. on my laptop) VM that is identical to my DO droplet (Ubuntu 14.04 - LAMP etc) running? Does DO provide a provisioner for Vagrant that can replicate the setup of a DO droplet? It's handy being able to develop on my machine, instead of on a Droplet in the cloud. It should be possible, I never tried myself (as I switch to EC2) but I saw there was a digital ocean plugin, you can refer to the following page https://www.digitalocean.com/community

Mailgun Domain not found: abc.com

寵の児 提交于 2019-12-03 23:03:17
I am trying to setup emails with my own website. Let's say the domain name is abc.com . The nameserver in use is digital ocean and I also have a gmail account linked to the same (say using contact@abc.com ). While setting up things with mailgun, I used mg.abc.com (as they said it would also let me email using the root domain). The verification step is done and I can send email using contact@mg.abc.com . However, trying to use the root domain ( contact@abc.com ) gives the following error: AnymailRequestsAPIError: Sending a message to me@gmail.com from contact@abc.com ESP API response 404: {

UFW firewall is not working on Ubuntu in DigitalOcean

醉酒当歌 提交于 2019-12-03 21:10:42
In my DigitalOcean (DO) droplet I installed this image: Ubuntu Docker 17.12.0~ce on 16.04 (which is available on ** DO website > droplet> destroy> rebuild droplet**) , in ssh (after user configuration), I run sudo ufw default deny incoming sudo ufw default allow outgoing sudo ufw enable sudo ufw status verbose and get: Status: active Logging: on (low) Default: deny (incoming), allow (outgoing), allow (routed) New profiles: skip To Action From -- ------ ---- 22 LIMIT IN Anywhere 2375/tcp ALLOW IN Anywhere 2376/tcp ALLOW IN Anywhere 22 (v6) LIMIT IN Anywhere (v6) 2375/tcp (v6) ALLOW IN Anywhere

Expose port 80 on Digital Ocean's managed Kubernetes without a load balancer

被刻印的时光 ゝ 提交于 2019-12-03 19:37:01
问题 I would like to expose my Kubernetes Managed Digital Ocean (single node) cluster's service on port 80 without the use of Digital Ocean's load balancer. Is this possible? How would I do this? This is essentially a hobby project (I am beginning with Kubernetes) and just want to keep the cost very low. 回答1: You can deploy an Ingress configured to use the host network and port 80/443. DO's firewall for your cluster doesn't have 80/443 inbound open by default. If you edit the auto-created firewall

Kubernetes External Load Balancer Service on DigitalOcean

狂风中的少年 提交于 2019-12-03 13:08:02
问题 I'm building a container cluster using CoreOs and Kubernetes on DigitalOcean, and I've seen that in order to expose a Pod to the world you have to create a Service with Type: LoadBalancer. I think this is the optimal solution so that you don't need to add external load balancer outside kubernetes like nginx or haproxy. I was wondering if it is possible to create this using DO's Floating IP. 回答1: The LoadBalancer type of service is implemented by adding code to the kubernetes master specific