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

minishift service foo - Should support service context-path annotations #76

Closed
davsclaus opened this issue Sep 9, 2016 · 1 comment
Closed

Comments

@davsclaus
Copy link

A service can be annotated in kubernetes to include a prefix path for the service, such as /hello in this example: https://github.com/rhuss/fabric8-maven-plugin/blob/master/samples/external-resources/src/main/fabric8/service.yml

In my example then I type minshift service hello and it opens

http://192.168.64.5:32623/

But with the annotated the context-path should include /hello eg so its

http://192.168.64.5:32623/hello

In my own project I manually declare a service so I can specify that context-path annotation but also show how to chose port numbers for the service

I have a src/main/fabric8/service.yml file with some kubenetes metadata:

metadata:
  annotations:
    api.service.kubernetes.io/path: /hello
  name: "hello"
spec:
  ports:
  - port: 8181
    protocol: "TCP"
    targetPort: 8080
  type: LoadBalancer
@davsclaus
Copy link
Author

btw Kurt Stam knows much more about that kubernetes annotation as he help design that for k8s as part of apiman showing a demand for such thing

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

1 participant