fabric8

【k8s系列5】KubernetesClientException: too old resource version 原因分析

坚强是说给别人听的谎言 提交于 2020-11-18 15:33:36
背景 公司目前在基于k8s做调度(基于io.fabric8:kubernetes-client:4.2.0),在运行的过程中,遇到了如下问题: DEBUG io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager - WebSocket close received. code: 1000, reason: DEBUG io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager - Submitting reconnect task to the executor [scheduleReconnect|Executor for Watch 1880052106] DEBUG io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager - Scheduling reconnect task [reconnectAttempt|Executor for Watch 1880052106] DEBUG io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager - Connecting websocket ..

Failed to execute fabric8 docker plugin

南楼画角 提交于 2020-02-26 01:43:09
问题 Running mvn clean install pulls up this error( Windows) [ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.20.1:start (prepare-environment) on project integration-test: Execution prepare-environment of goal io.fabric8:docker-maven-plugin:0.20.1:start failed: Start-Job failed with unexpected exception: [sebp/elk:latest] "elk": Timeout after 120365 ms while waiting on url http://localhost:32774/ 来源: https://stackoverflow.com/questions/44226315/failed-to-execute-fabric8-docker

Best way to load dynamically routes in Apache Camel

元气小坏坏 提交于 2020-01-29 17:50:07
问题 we have developped application based on Karaf and Apache Camel. While our application is entirely based on bundles ( OSGI ) we are also loading the Camel context ( and its' Route Contexts ) on startup, whcih would mean that we have defined some static routes. My question is. Is there a way to dynamically LOAD routes while the application is running without the need to reread the Camel Context as this will reset/restart the already existing routes. The same would apply to already created

Best way to load dynamically routes in Apache Camel

久未见 提交于 2020-01-29 17:49:07
问题 we have developped application based on Karaf and Apache Camel. While our application is entirely based on bundles ( OSGI ) we are also loading the Camel context ( and its' Route Contexts ) on startup, whcih would mean that we have defined some static routes. My question is. Is there a way to dynamically LOAD routes while the application is running without the need to reread the Camel Context as this will reset/restart the already existing routes. The same would apply to already created

How to push docker image to Amazon ECR using io.fabric8 maven plugin with authorization

我是研究僧i 提交于 2020-01-24 18:02:11
问题 I have a plugin to create a image, once created it need to be pushed to amazon ECR Please look into my plugin in the below` <?xml version="1.0" encoding="UTF-8"?> <plugin> <groupId>io.fabric8</groupId> <artifactId>docker-maven-plugin</artifactId> <version>0.24.0</version> <configuration> <dockerHost>https://accountID.dkr.ecr.us-east-1.amazonaws.com</dockerHost> <authConfig> <authToken>authorization Token</authToken> <username>Access Key ID</username> <password>Secret Key Id</password> <

How to get kubernetes service account access token using fabric8 java client?

放肆的年华 提交于 2019-12-24 18:13:20
问题 I have configured minikube in my local machine and going to use kubernetes externally. I have created a Service Account in kubernetes and using it's secret I can get the access token using below command. kubectl get secret <service-account-secret> -o yaml -n mynamespace My question is how can I do this using fabric8 java client in runtime ? What I want is to obtain the access token by giving the secret of the Service account as a parameter. I am initiating the config as bellow. Config config

kubectl apply -f <spec.yaml> equivalent in fabric8 java api

ⅰ亾dé卋堺 提交于 2019-12-11 07:45:50
问题 I was trying to use io.fabric8 api to create a few resources in kubernetes using a pod-spec.yaml. Config config = new ConfigBuilder() .withNamespace("ag") .withMasterUrl(K8_URL) .build(); try (final KubernetesClient client = new DefaultKubernetesClient(config)) { LOGGER.info("Master: " + client.getMasterUrl()); LOGGER.info("Loading File : " + args[0]); Pod pod = client.pods().load(new FileInputStream(args[0])).get(); LOGGER.info("Pod created with name : " + pod.toString()); } catch (Exception

Save Multiple docker images into one tar.gz file with maven fabric8 plugin

穿精又带淫゛_ 提交于 2019-12-11 07:22:03
问题 We are using io.fabric8:docker-maven-plugin:0.27.2 to build docker images. my maven project consist of 3 modules ( module1 , module2 and module3 ). Each module builds a docker image based on the dockerfile present within each module. Now, when I run mvn docker:save - I want to save all 3 docker images into one tar.gz file, myproject-1.0.0.tar.gz . Is it even possible with this plugin? My Project Structure: project |-module1 |-DockerFile1 |-pom.xml |-module2 |-DockerFile2 |-pom.xml |-module3 |

fabric8 -The last operation resulted in the following error: Unauthorized

独自空忆成欢 提交于 2019-12-11 06:41:32
问题 I am working with kubernetes on google cloud, I have created a fabric8 cluster: http://fabric8.io/guide/getStarted/gke.html when the cluster is up and running i pull remote repositories and it works but when i try create a new app and i get the following msg: The last operation resulted in the following error: Unauthorized log:2016-08-21T16:39:07.505206481Z Both io.fabric8.forge.rest.git.RepositoriesResource#projectRepositoryResource and io.fabric8.forge.rest.git.RepositoriesResource

In a Watcher in the fabric8 Kubernetes client events() API, what resources can I watch?

天大地大妈咪最大 提交于 2019-12-11 06:02:09
问题 I am exploring the (undocumented?) events() API in Fabric8's Kubernetes client project. Specifically, I see that I can do something like the following: client.events().inAnyNamespace().watch(new Watcher<Something>() { @Override public final void eventReceived(final Action action, final Something something) { } @Override public final void onClose(final KubernetesClientException kubernetesClientException) { if (kubernetesClientException != null) { // log? throw? } } }); What are the permitted