Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open Liberty Application creation issue #431

Open
iamsoorya opened this issue Jun 5, 2023 · 1 comment
Open

Open Liberty Application creation issue #431

iamsoorya opened this issue Jun 5, 2023 · 1 comment

Comments

@iamsoorya
Copy link

Bug Report

OpenLibertyApplication not getting created

What did you do?

There is no trace or events logged on the error. The open liberty application object is listed and able to describe however, we do not see the pods.

What did you expect to see?

Application pod successfully getting created.

A clear and concise description of what you expected to happen (or insert a code snippet). If possible, add OpenLibertyApplication CR.

What did you see instead?

No pods created.
A clear and concise description of what you expected to happen (or insert a code snippet).

Environment

We tried with the sample manifest file like given like
apiVersion: apps.openliberty.io/v1
kind: OpenLibertyApplication
metadata:
name: my-liberty-app
spec:
applicationImage: quay.io/my-repo/my-app:1.0
service:
type: ClusterIP
port: 9080
expose: true
securityContext:
readOnlyRootFilesystem: true
runAsUser: 1001
statefulSet:
storage:
size: 2Gi
mountPath: "/logs"

The above code does not created any pods.

  • Kubernetes version information:
    It is AKS v 1.26.3
  • OpenShift version information (if applicable):
  • Appsody CLI version (if applicable):
  • Appsody Stack (if applicable):

Possible solution

Additional context

Add any other context about the problem here.

@leochr
Copy link
Member

leochr commented Jun 5, 2023

@iamsoorya quay.io/my-repo/my-app:1.0 is not an actual image. If you don't have your own application image to deploy and are looking for a sample app to deploy use the sample image icr.io/appcafe/open-liberty/samples/getting-started. We'll consider updating configuration snippets in the documentation to use this sample image.

If your cluster doesn't have storage with dynamic binding/provisioner, then remove .spec.statefulSet field. Otherwise, the pods will not be created.

If your cluster doesn't have cert-manager installed to generate TLS certificates, then disable manageTLS and specify service port 9080:

apiVersion: apps.openliberty.io/v1
kind: OpenLibertyApplication
metadata:
  name: openliberty-app-sample
spec:
  applicationImage: icr.io/appcafe/open-liberty/samples/getting-started
  manageTLS: false
  expose: true
  service:
    port: 9080

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants