Hello,
My simple microservices work with an embedded cassandra server.
But I am looking for an example entry point into the image when I deploy it in kubernetes.
I use spotify plugin and push and pull from docker.io
I use a dockerfile. Where in my dockerfile should I specify the entry point ? How ?
One more question. Are my health checks proper ?
Thanks,
Mohan
{
“apiVersion”: “apps/v1beta1”,
“kind”: “StatefulSet”,
“metadata”: {
“name”: “order”
},
“spec”: {
“serviceName”: “order”,
“replicas”: 1,
“template”: {
“metadata”: {
“labels”: {
“app”: “order”
}
},
“spec”: {
“containers”: [{
“name”: “order”,
“image”: “mohanr/reactivemicroservices:1.0-SNAPSHOT”,
“imagePullPolicy”: “Always”,
“command”: [“echo”, “SUCCESS”],
“resources”: {
“requests”: {
“memory”: “512Mi”
}
},
“ports”: [{
“containerPort”: 9000,
“name”: “http-lagom-api”
},
{
“containerPort”: 2551,
“name”: “akka-remote”
}
],
“env”: [{
“name”: “APPLICATION_SECRET”,
“value”: “ATTENTION_BE_SURE_TO_CHANGE_ME!!!”
},
{
“name”: “KAFKA_SERVICE_NAME”,
“value”: “_server._tcp.kafka-hs.default.svc.cluster.local”
},
{
“name”: “CASSANDRA_SERVICE_NAME”,
“value”: “_native._tcp.cassandra.default.svc.cluster.local”
},
{
“name”: “HELLO_BIND_PORT”,
“value”: “9000”
},
{
“name”: “HELLO_BIND_IP”,
“value”: “0.0.0.0”
},
{
“name”: “AKKA_REMOTING_PORT”,
“value”: “2551”
},
{
“name”: “AKKA_REMOTING_BIND_PORT”,
“value”: “2551”
},
{
“name”: “AKKA_REMOTING_HOST”,
“value”: “$HOSTNAME.hello.default.svc.cluster.local”
},
{
“name”: “AKKA_REMOTING_BIND_HOST”,
“value”: “$HOSTNAME.hello.default.svc.cluster.local”
},
{
“name”: “AKKA_SEED_NODES”,
“value”: “order-0.order.default.svc.cluster.local:2551,order-1.order.default.svc.cluster.local:2551,order-2.order.default.svc.cluster.local:2551”
}
],
"readinessProbe": [{
"httpGet": [{
"path": "/platform-tooling/ready",
"port": "akka-mgmt-http"
}],
"periodSeconds": 10
}],
"livenessProbe": [{
"httpGet": [{
"path": "/platform-tooling/ready",
"port": "akka-mgmt-http"
}],
"periodSeconds": 10,
"initialDelaySeconds": 60
}]
}],
"imagePullSecrets": [{
"name": "myregistrykey"
}]
}
}
}
}