Skip to content

Instantly share code, notes, and snippets.

@antonmry
Last active April 30, 2016 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antonmry/0ab69e95e61617eb957a79beb25ba30b to your computer and use it in GitHub Desktop.
Save antonmry/0ab69e95e61617eb957a79beb25ba30b to your computer and use it in GitHub Desktop.
restcomm_rc.yml by @adimania
apiVersion: v1
kind: ReplicationController
metadata:
name: restcomm-core-controller
spec:
replicas: 1
selector:
app: restcomm-core
template:
metadata:
labels:
app: restcomm-core
spec:
containers:
- name: restcomm-core
image: restcomm/restcomm
ports:
- name: http
containerPort: 80
protocol: TCP
- name: https
containerPort: 443
protocol: TCP
- name: tcp9990
containerPort: 9990
protocol: TCP
- name: sip-tcp
containerPort: 5060
protocol: TCP
- name: sip-udp
containerPort: 5060
protocol: UDP
- name: sip-tls
containerPort: 5061
protocol: TCP
- name: sip-ws
containerPort: 5062
protocol: TCP
- name: sip-wss
containerPort: 5063
protocol: TCP
- name: rtp0
containerPort: 65000
protocol: UDP
- name: rtp1
containerPort: 65001
protocol: UDP
- name: rtp2
containerPort: 65002
protocol: UDP
- name: rtp3
containerPort: 65003
protocol: UDP
- name: rtp4
containerPort: 65004
protocol: UDP
env:
- name: ENVCONFURL
value: https://raw.githubusercontent.com/RestComm/Restcomm-Docker/master/scripts/restcomm_env_locally.sh
- name: STATIC_ADDRESS
value: 192.168.0.71
- name: MEDIASERVER_LOWEST_PORT
value: "65000"
- name: MEDIASERVER_HIGHEST_PORT
value: "65004"
{
"kind": "Service",
"apiVersion": "v1",
"metadata": {
"name": "restcomm-service"
},
"spec": {
"selector": {
"app": "restcomm-core"
},
"ports": [
{
"name": "http",
"protocol": "TCP",
"port": 80,
"targetPort": 80
},
{
"name": "https",
"protocol": "TCP",
"port": 443,
"targetPort": 443
},
{
"name": "tcp9990",
"protocol": "TCP",
"port": 9990,
"targetPort": 9990
},
{
"name": "sip-tcp",
"protocol": "TCP",
"port": 5060,
"targetPort": 5060
},
{
"name": "sip-udp",
"protocol": "UDP",
"port": 5060,
"targetPort": 5060
},
{
"name": "sip-tls",
"protocol": "UDP",
"port": 5061,
"targetPort": 5061
},
{
"name": "sip-ws",
"protocol": "TCP",
"port": 5062,
"targetPort": 5062
},
{
"name": "sip-wss",
"protocol": "TCP",
"port": 5063,
"targetPort": 5063
},
{
"name": "rtp0",
"protocol": "UDP",
"port": 65000,
"targetPort": 65000
},
{
"name": "rtp1",
"protocol": "UDP",
"port": 65001,
"targetPort": 65001
},
{
"name": "rtp2",
"protocol": "UDP",
"port": 65002,
"targetPort": 65002
},
{
"name": "rtp3",
"protocol": "UDP",
"port": 65003,
"targetPort": 65003
},
{
"name": "rtp4",
"protocol": "UDP",
"port": 65004,
"targetPort": 65004
}
],
"externalIPs" : [
"192.168.0.71"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment