INSERT DESIGNATOR, IF NEEDED3
The container images Kubernetes Resource Definitions
TroubleshootingRun the deployment
WHAT SHALL WE LOOK AT?
The pieces involved in deploying the VNF-Asterisk applications themselves.
INSERT DESIGNATOR, IF NEEDED5
WHERE ARE THE DOCKERFILES?
The Dockerfiles are on Github, of course! And the images on Dockerhub.
INSERT DESIGNATOR, IF NEEDED6
DISSECTING A DOCKERFILE
Each instruction results in an image layer
FROM: A base image
ENV: Environment vars
INSERT DESIGNATOR, IF NEEDED7
THE OPEN CONTAINER INITIATIVE
Docker isn’t the only way.
In Kubernetes pods live together with the
namespaces of an “infra-container” which
shares their network & volume mounts,
WHAT’S A POD?
Pods are logically grouped containers and scale together in deployments.
Network Volumes ...
INSIDE A POD SPEC...
It’s really just YAML that specifies how to run a pod.
kind: The type of specification
image: Which image to run
volumeMounts: storage to mount
configMap: configurations to mount
DEPLOYMENTS AND REPLICAS
Deployment controllers provide updates to ReplicaSets and Pods
2 instances of
INSIDE A DEPLOYMENT DEFINITION
It abstracts a replication controller & pod specs so you can scale it.
kind: It’s a deployment
replicas: Number of instances
template: What to replicate
spec: The whole pod spec (as before)
How to pack (primarily) static configuration files (or environment vars, and more) into pods.
kind: A config map.
data: A dictionary of configs
These are config files packed into
the yaml file! Here’s some friendly
ones you know and love (like
pjsip.conf and cdr.conf)
DO YOU LIKE THE EASY WAY OUT?
You can also run VNF-Asterisk solely with Docker-Compose!
$ dnf install -y docker-compose
$ git clone https://github.com/dougbtv/docker-asterisk.git
$ docker-compose build
$ docker-compose up
VNF-Asterisk is a VNF utilizing Asterisk (an
Open Source telephony framework) and
intended to be used for validating environments,
and exploring topics such as:
● VNFs in COEs (Kubernetes / Openshift)
● Container Networking
● High Availability
● And more.
SO, WHAT IS VNF-ASTERISK?
A demo VNF in Kubernetes that YOU can try out!