2017-06-28 4 views
0

が欠落しています。jhipsterのkubectl - 「"デコードでき:このコマンドを実行すると、オブジェクトの種類は"

kubectl apply -f tenten 

私はこのエラーを取得する:

unable to decode "tenten\.angular-cli.json": Object 'Kind' is missing in '{

"project": { 
    "$schema": "./node_modules/@angular/cli/lib/config/schema.json", 
    "name": "tenten" 
}, 
"apps": [{ 
    "root": "src/main/webapp/", 
    "outDir": "target/www/app", 
    "assets": [ 
     "content", 
     "favicon.ico" 
    ], 
    "index": "index.html", 
    "main": "app/app.main.ts", 
    "polyfills": "app/polyfills.ts", 
    "test": "", 
    "tsconfig": "../../../tsconfig.json", 
    "prefix": "jhi", 
    "mobile": false, 
    "styles": [ 
     "content/scss/vendor.scss", 
     "content/scss/global.scss" 
    ], 
    "scripts": [] 
}], 

答えて

0

それはあなたのように見えます」アプリケーションの親ディレクトリから実行してください。 1)あなたのアプリケーションと平行してディレクトリを作成し、2)yo jhipster:kubernetesを実行する必要があります。次に、ドッカー画像を作成してプッシュした後に、そのディレクトリにkubectl apply -f tentenを実行します。たとえば、jhipster-microservices-exampleプロジェクトのkubernetesディレクトリから実行した場合の出力例を次に示します。

± yo jhipster:kubernetes 

    _-----_ 
    |  | ╭──────────────────────────────────────────╮ 
    |--(o)--| │ Update available: 2.0.0 (current: 1.8.5) │ 
    `---------´ │  Run npm install -g yo to update.  │ 
    (_´U`_) ╰──────────────────────────────────────────╯ 
    /___A___\ /
    | ~ | 
    __'.___.'__ 
´ ` |° ´ Y ` 

⎈ [BETA] Welcome to the JHipster Kubernetes Generator ⎈ 
Files will be generated in folder: /Users/mraible/dev/jhipster-microservices-example/kubernetes 
WARNING! kubectl 1.2 or later is not installed on your computer. 
Make sure you have Kubernetes installed. Read http://kubernetes.io/docs/getting-started-guides/binary_release/ 


Found .yo-rc.json config file... 
? Which *type* of application would you like to deploy? Microservice application 
? Enter the root directory where your gateway(s) and microservices are located ../ 
2 applications found at /Users/mraible/dev/jhipster-microservices-example/ 

? Which applications do you want to include in your configuration? (Press <space> to select, <a> to toggle all, <i> to i 
nverse selection)blog, store 
JHipster registry detected as the service discovery and configuration provider used by your apps 
? Enter the admin password used to secure the JHipster Registry admin 
? What should we use for the Kubernetes namespace? default 
? What should we use for the base Docker repository name? mraible 
? What command should we use for push Docker image to repository? docker push 

Checking Docker images in applications' directories... 
ls: no such file or directory: /Users/mraible/dev/jhipster-microservices-example/blog/target/docker/blog-*.war 
identical blog/blog-deployment.yml 
identical blog/blog-service.yml 
identical blog/blog-postgresql.yml 
identical blog/blog-elasticsearch.yml 
identical store/store-deployment.yml 
identical store/store-service.yml 
identical store/store-mongodb.yml 
conflict registry/jhipster-registry.yml 
? Overwrite registry/jhipster-registry.yml? overwrite this and all others 
    force registry/jhipster-registry.yml 
    force registry/application-configmap.yml 

WARNING! Kubernetes configuration generated with missing images! 
To generate Docker image, please run: 
    ./mvnw package -Pprod docker:build in /Users/mraible/dev/jhipster-microservices-example/blog 

WARNING! You will need to push your image to a registry. If you have not done so, use the following commands to tag and push the images: 
    docker image tag blog mraible/blog 
    docker push mraible/blog 
    docker image tag store mraible/store 
    docker push mraible/store 

You can deploy all your apps by running: 
    kubectl apply -f registry 
    kubectl apply -f blog 
    kubectl apply -f store 

Use these commands to find your application's IP addresses: 
    kubectl get svc blog 

詳細については、私のブログ記事Develop and Deploy Microservices with JHipsterの最後を参照してください。

+0

それは働いた。問題が解決しました。 –

関連する問題