Incorrect appname in the k8s deployment

Hi all,

How does rp determines the appname to be used in the k8s deployment?

We have situation where for some of the services, the app name is correctly labeled without “-impl” at the end, but for one single service, the appName is keep getting labelled with “-impl” which results in the deployment errors.

In Lagom project, how does RP decide what to you for the appName?

Correct One:

---
apiVersion: "apps/v1beta2"
kind: Deployment
metadata:
  name: "instrument-v1-0-2"
  labels:
    appName: instrument
    appNameVersion: "instrument-v1-0-2"

Incorrect One:

apiVersion: "apps/v1beta2"
kind: Deployment
metadata:
  name: "timeseries-impl-v1-0-2"
  labels:
    appName: "timeseries-impl"
    appNameVersion: "timeseries-impl-v1-0-2"

Hi,

deployment name and appName are derived from service name in service descriptor. Deployment additionally uses your project version.
Ingress name is derived from project name.
Take in mind that ,by convention, Kubernates resource names are restricted: Kubernates - Names so RP will replace all “unwanted” characters with -
Hope this helps.

Br,
Alan

Hi Alan,

Thanks for the reply. This was fixed my renaming the package folder from camelCasing to lowercased name. I don’t know what that worked.