在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):kubernetes-up-and-running/kuard开源软件地址(OpenSource Url):https://github.com/kubernetes-up-and-running/kuard开源编程语言(OpenSource Language):Go 53.9%开源软件介绍(OpenSource Introduction):Demo application for "Kubernetes Up and Running"Running
Open your browser to http://localhost:8080. BuildingWe have ~3 ways to build. This has changed slightly from when the book is published so I'd view this as authoritative. Insert BinaryThis aligns with what is in the book. You need to build the binary to run somehow and then insert it into a Docker image. The easiest way to do this is to use the fully automated make system to build the binary and then create a Dockerfile for creating an image. Create the binary by typing Now create a minimal Dockerfile to contain that binary:
Overwrite To upload to a registry you'll have to tag it and push to your registry. Refer to your registry documentation for details. Multi-stage DockerfileA new feature of Docker, since the book was published, is a "multi-stage" build. This is a way to run build multiple images and then copy files between them. The You can easily build an image with To upload to a registry you'll have to tag it and push to your registry. Refer to your registry documentation for details. Fancy Makefile for automated build and pushThis will build and push container images to a registry. This builds a set of images with "fake versions" (see below) to be able to play with upgrades.
If you are having trouble, try issuing a KeyGen WorkloadTo help simulate batch workers, we have a synthetic workload of generating 4096 bit RSA keys. This can be configured through the UI or the command line.
MemQ serverWe also have a simple in memory queue with REST API. This is based heavily on https://github.com/kelseyhightower/memq. The API is as follows with URLs being relative to
VersionsImages built will automatically have the git version (based on tag) applied. In addition, there is an idea of a "fake version". This is used so that we can use the same basic server to demonstrate upgrade scenarios. Originally (and in the Kubernetes Up & Running book) we had
For documentation where you want to demonstrate using versions but use the latest version of this server, you can simply reference (Another way to think about it is that We also build versions for DevelopmentIf you just want to do Go server development, you can build the client as part of a build If you want to do both Go server and React.js client dev, you need to do the following:
This should support live reload of any changes to the client. The Go server will need to be exited and restarted to see changes. TODO
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论