Comments (7)
@ox0spy I have not checked that yet, but I'm assuming is a CNI more related configuration.
I want to make a couple of updates to the driver this couple of weeks so I could check this problem at the same time.
from firecracker-task-driver.
I'll take a look next week, if you solve this before let me know.
from firecracker-task-driver.
I tried but I failed, I can not make it work.
Because I can't get the CNI assigned IP Address.
from firecracker-task-driver.
@ox0spy is any of the examples working for you?, the network interface should pickup the ip address provided by your cni network configuration.
from firecracker-task-driver.
@ox0spy
This is working for me I just installed consul and tried the following
job "consul-example" {
datacenters = ["dc1"]
type = "service"
group "test" {
restart {
attempts = 0
mode = "fail"
}
service {
name = "nwn-service"
port = 22
check {
type = "tcp"
interval = "10s"
timeout = "5s"
}
}
task "nwn" {
driver = "firecracker-task-driver"
config {
Vcpus = 1
Mem = 128
KernelImage= "/home/cneira/kernel-images/vmlinux.bin"
BootDisk = "/dev/zvol/vms/centos7"
Network = "default"
}
}
}
}
and I also deploy consul by nomad
job "consul" {
datacenters = ["dc1"] group "consul" {
count = 1
task "consul" {
driver = "raw_exec"
config {
command = "consul"
args = ["agent", "-dev"]
}
}
}
}
I followed this guide https://medium.com/hashicorp-engineering/hashicorp-nomad-from-zero-to-wow-1615345aa539 and the service registers on consul.
from firecracker-task-driver.
@ox0spy feel free to re-open if needed.
from firecracker-task-driver.
@cneira Thanks for your update.
Now also can not support address_mode = "alloc"
cni conf: /etc/cni/conf.d/firecracker.conflist
{
"name": "firecracker",
"cniVersion": "0.4.0",
"plugins": [
{
"type": "ptp",
"ipMasq": true,
"ipam": {
"type": "host-local",
"subnet": "192.168.60.0/24",
"resolvConf": "/etc/resolv.conf"
}
},
{
"type": "tc-redirect-tap"
}
]
}
job config
job "hello" {
datacenters = ["dc1"]
type = "service"
group "sshd" {
network {
# mode = "cni/mynet"
port "ssh" {
to = 22
}
}
service {
name = "sshd"
port = "ssh"
address_mode = "alloc"
check {
type = "tcp"
interval = "10s"
timeout = "2s"
address_mode = "alloc"
}
}
task "sshd" {
driver = "firecracker-task-driver"
config {
KernelImage = "/home/ox0spy/projects/nomad/study/firecracker/vmlinux.bin"
BootDisk = "/home/ox0spy/projects/nomad/study/firecracker/rootfs.ext4"
Firecracker = "/usr/local/bin/firecracker"
Vcpus = 1
Mem = 128
Network = "firecracker"
}
}
}
}
docs for address_mode in service block: https://www.nomadproject.io/docs/job-specification/service#address_mode
run job
nomad status <alloc-id>
got the below error message:
Setup Failure failed to setup alloc: pre-run hook "group_services" failed: unable to get address for service "sshd": cannot use address_mode="alloc": no allocation network status reported
from firecracker-task-driver.
Related Issues (15)
- Rootfs links not accessible HOT 1
- Jailer HOT 2
- veth interface HOT 2
- Add support for address_mode = "alloc" HOT 1
- firecracker-task-driver err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio" HOT 3
- Request for examples HOT 1
- Readme improvements HOT 1
- Request: Propagate Firecracker Task Driver errors to Nomad UI HOT 5
- Add support for firecracker v1.0.0 HOT 2
- Bug- Veth is not releasing when the MicroVM restart HOT 5
- Supporting snapshot, pause/restore HOT 1
- Bug install firecracker-task-driver HOT 1
- License HOT 2
- Dead lock stop jobs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firecracker-task-driver.