aboutsummaryrefslogtreecommitdiffstats
path: root/test/security/k8s/vagrant
diff options
context:
space:
mode:
authorPawel Wieczorek <p.wieczorek2@samsung.com>2019-09-30 14:23:30 +0200
committerPawel Wieczorek <p.wieczorek2@samsung.com>2019-09-30 15:31:13 +0200
commit155417479ebc5c531349dd898b96ef4a819b0f0a (patch)
treeb309fa341d08cf5ebb89c943afeaa476d09a3d7c /test/security/k8s/vagrant
parentbd12bfbc6fbe4ecfc2152467ea6785c9e5163763 (diff)
k8s: Resolve address conflicts in virtual environments
Running Casablanca and Dublin virtual environments at the same time led to networking issues - the same IP had been assigned to cluster nodes. Issue-ID: SECCOM-235 Change-Id: I2a59d023115326f5b132782a32190fd8f7dc1f48 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
Diffstat (limited to 'test/security/k8s/vagrant')
-rw-r--r--test/security/k8s/vagrant/casablanca/Vagrantfile4
-rw-r--r--test/security/k8s/vagrant/dublin/Vagrantfile6
-rw-r--r--test/security/k8s/vagrant/dublin/cluster.yml4
3 files changed, 7 insertions, 7 deletions
diff --git a/test/security/k8s/vagrant/casablanca/Vagrantfile b/test/security/k8s/vagrant/casablanca/Vagrantfile
index 6d5ba4b81..c7e6883ce 100644
--- a/test/security/k8s/vagrant/casablanca/Vagrantfile
+++ b/test/security/k8s/vagrant/casablanca/Vagrantfile
@@ -10,8 +10,8 @@ vm_cpus = 1
vm_box = "generic/ubuntu1604"
cluster = [
- { name: 'master', hostname: 'master', ip: '172.17.0.100' },
- { name: 'worker', hostname: 'worker', ip: '172.17.0.101' }
+ { name: 'master', hostname: 'master', ip: '172.17.3.100' },
+ { name: 'worker', hostname: 'worker', ip: '172.17.3.101' }
]
Vagrant.configure('2') do |config|
diff --git a/test/security/k8s/vagrant/dublin/Vagrantfile b/test/security/k8s/vagrant/dublin/Vagrantfile
index b8abcd125..1ccc3ef9f 100644
--- a/test/security/k8s/vagrant/dublin/Vagrantfile
+++ b/test/security/k8s/vagrant/dublin/Vagrantfile
@@ -15,10 +15,10 @@ vm_memory = 2 * 1024
vm_cpus = 1
vm_box = "generic/ubuntu1804"
-operation = { name: 'operator', hostname: 'operator', ip: '172.17.0.254' }
+operation = { name: 'operator', hostname: 'operator', ip: '172.17.4.254' }
cluster = [
- { name: 'control', hostname: 'control', ip: '172.17.0.100' },
- { name: 'worker', hostname: 'worker', ip: '172.17.0.101' }
+ { name: 'control', hostname: 'control', ip: '172.17.4.100' },
+ { name: 'worker', hostname: 'worker', ip: '172.17.4.101' }
]
all = cluster.dup << operation
diff --git a/test/security/k8s/vagrant/dublin/cluster.yml b/test/security/k8s/vagrant/dublin/cluster.yml
index f06222209..df93a8863 100644
--- a/test/security/k8s/vagrant/dublin/cluster.yml
+++ b/test/security/k8s/vagrant/dublin/cluster.yml
@@ -1,7 +1,7 @@
# An example of a Kubernetes cluster for ONAP
ssh_key_path: &ssh_key_path "~/.ssh/onap-key"
nodes:
-- address: 172.17.0.100
+- address: 172.17.4.100
port: "22"
role:
- controlplane
@@ -9,7 +9,7 @@ nodes:
hostname_override: "onap-control-1"
user: vagrant
ssh_key_path: *ssh_key_path
-- address: 172.17.0.101
+- address: 172.17.4.101
port: "22"
role:
- worker