1 在gcs创建一个bucket用来存放图片
2 将文件打包成镜像文件:
(1) Cd /home/image-gke/docker_
(2) Docker build –t gcr.io/项目名/包名 .
(3) Gcloud docker -- push gcr.io/项目名/包名
(4) Sudo vim/home/image-gke/gke/deployment.yaml
将images 修改成上边生成的镜像名称,将env内容中的bucket_name的value修改成上边创建的bucket的名字
(5) kubectl apply -f /image-gke/gke/*
3 打开由程序创建的glb,添加外部访问的ip地址
-
Notifications
You must be signed in to change notification settings - Fork 0
piedro/image-gke
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published