Skip to content
This repository was archived by the owner on Mar 18, 2020. It is now read-only.
This repository was archived by the owner on Mar 18, 2020. It is now read-only.

Expired token? #28

Description

@kalvarez2

Folowing some of the instructions from blog, started the server with the following arguments:

-Dopenshift.url=https://192.168.42.189:8443 \
 -Dkubernetes.master=https://192.168.42.189:8443 \
 -Dkubernetes.trust.certificates=true \
 -Dkubernetes.auth.basic.username=admin \
 -Dkubernetes.auth.basic.password=admin \
--spring.cloud.deployer.kubernetes.namespace=scdf-apps \
--maven.resolvePom=true \ 
--maven.remote-repositories.spring.url=http://repo.spring.io/snapshots

Using a new minishift instance, I can login to the minishift instance using the host port username and password supplied as arguments
Got the following stack trace:

io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at: https://192.168.42.189:8443/api/v1/namespaces/default/services?labelSelector=spring-app-id%3Dpeople-personsink. Message: Unauthorized! Token may have expired! Please log-in again. Unauthorized
.
	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.requestFailure(OperationSupport.java:470)
	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.assertResponseCode(OperationSupport.java:407)
	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:379)
	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:343)
	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:327)
	at io.fabric8.kubernetes.client.dsl.base.BaseOperation.list(BaseOperation.java:605)
	at io.fabric8.kubernetes.client.dsl.base.BaseOperation.list(BaseOperation.java:70)
	at org.springframework.cloud.deployer.spi.kubernetes.KubernetesAppDeployer.status(KubernetesAppDeployer.java:202)
	at org.springframework.cloud.deployer.spi.openshift.OpenShiftAppDeployer.deploy(OpenShiftAppDeployer.java:70)
	at org.springframework.cloud.deployer.spi.openshift.ResourceAwareOpenShiftAppDeployer.deploy(ResourceAwareOpenShiftAppDeployer.java:33)
...  

Is there any difference I should be aware of when using minishft instead of vagrant as per the blog? Any more recent blog post that would help?
Would the instructions here be better? https://donovanmuller.github.io/spring-cloud-dataflow-server-openshift/docs/1.1.0.RELEASE/reference/htmlsingle/#getting-started
thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions