Name: conversation-simple-k8s
Owner: International Business Machines
Description: conversation-simple-k8s
Created: 2018-03-27 14:15:29.0
Updated: 2018-03-27 14:41:54.0
Pushed: 2018-03-27 14:41:53.0
Homepage: null
Size: 2047
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This repo is a companion to the developerWorks Mailbag video Using Kubernetes secrets to manage credentials.
You'll find everything you need to:
This repo is based on the Watson Developer Cloud team's awesome conversation-simple application. Many thanks to that team for their excellent work.
bx
) command-line client. Once you've got that installed:bx plugin install container-registry -r Bluemix
to install the
container registry pluginbx plugin install container-service -r Bluemix
to install the
container service pluginkubectl
command-line toolAll of the steps involved in creating the chatbot app, building the docker image, and creating the Kubernetes cluster are covered in the following developerWorks Mailbag videos:
If you go through all the exercises in those videos, you'll have the same starting point as the companion video for this repo. However, you can use the techniques we cover with any Docker image containing any application you choose. Feel free to use your own app instead.
You can use an existing instance of the Conversation service if you have one. If you want a guided tour for creating a new service, the developerWorks Mailbag video Building chatbots in the IBM Cloud - Part 1 covers this around the 2:00 mark.
From the IBM Cloud console, click on your
Conversation Service in the list of services, then click the Import icon to
import the file RoyalValet.json
into the service. Be sure to import everything, including the entities, intents, and dialogs.
Details of importing data into a Conversation Service are in the video Building chatbots in the IBM Cloud - Part 1 around the 9:05 mark.
Before you go through the steps in this video, we assume you have a Docker image that contains an app that needs credentials. If you've followed the video series, you've done the following steps:
Dockerfile
and a .dockerignore
file to make this easy.WORKSPACE_ID
, CONVERSATION_USERNAME
, and CONVERSATION_PASSWORD
.kubectl
command to point to your cluster. (If you need to see how to do that, the details are at the 5:45 mark in the Building a Kubernetes cluster in the IBM Cloud video.)Whew. In a nutshell, here's what you'll do:
convo-secret.yaml
file.convo-deployment.yaml
file.kubectl
command.This sample code is licensed under Apache 2.0. Full license text is available in LICENSE.
See CONTRIBUTING.
Find more open source projects on the IBM Github Page.