You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -11,6 +13,34 @@ of images and onto which worker nodes those images should be cached (i.e. pre-pu
11
13
12
14
_kube-fledged_ provides CRUD APIs to manage the lifecycle of the image cache, and supports several configurable parameters to customize the functioning as per one's needs.
13
15
16
+
## Table of contents
17
+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
18
+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
19
+
20
+
21
+
-[Use cases](#use-cases)
22
+
-[Prerequisites](#prerequisites)
23
+
-[Quick Install using YAML manifests](#quick-install-using-yaml-manifests)
24
+
-[Quick Install using Helm operator](#quick-install-using-helm-operator)
25
+
-[Build and Deploy](#build-and-deploy)
26
+
-[Build](#build)
27
+
-[Deploy](#deploy)
28
+
-[How to use](#how-to-use)
29
+
-[Create image cache](#create-image-cache)
30
+
-[View the status of image cache](#view-the-status-of-image-cache)
31
+
-[Add/remove images in image cache](#addremove-images-in-image-cache)
32
+
-[Refresh image cache](#refresh-image-cache)
33
+
-[Delete image cache](#delete-image-cache)
34
+
-[Remove kube-fledged](#remove-kube-fledged)
35
+
-[How it works](#how-it-works)
36
+
-[Configuration Flags](#configuration-flags)
37
+
-[Supported Platforms](#supported-platforms)
38
+
-[Built With](#built-with)
39
+
-[Contributing](#contributing)
40
+
-[License](#license)
41
+
42
+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
43
+
14
44
## Use cases
15
45
16
46
- Applications that require rapid start-up. For e.g. an application performing real-time data processing needs to scale rapidly due to a burst in data volume.
@@ -25,9 +55,9 @@ _kube-fledged_ provides CRUD APIs to manage the lifecycle of the image cache, an
- git, make, go, docker and kubectl installed on a local linux machine. kubectl configured properly to access the cluster.
27
57
28
-
## Quick Install
58
+
## Quick Install using YAML manifests
29
59
30
-
These instructions install _kube-fledged_using pre-built images of the latest stable release in [Docker Hub.](https://hub.docker.com/u/senthilrch)
60
+
These instructions install _kube-fledged_to a separate namespace called "kube-fledged", using YAML manifests and pre-built images in [Docker Hub.](https://hub.docker.com/u/senthilrch)
31
61
32
62
- Clone the source code repository
33
63
@@ -46,14 +76,57 @@ These instructions install _kube-fledged_ using pre-built images of the latest s
46
76
- Verify if _kube-fledged_ deployed successfully
47
77
48
78
```
49
-
$ kubectl get pods -n kube-fledged -l app=fledged
79
+
$ kubectl get pods -n kube-fledged -l app=kubefledged
$ kubectl get imagecaches -n kube-fledged (Output should be: 'No resources found')
82
+
```
83
+
84
+
## Quick Install using Helm operator
85
+
86
+
These instructions install _kube-fledged_ to a separate namespace called "kube-fledged", using Helm operator and pre-built images in [Docker Hub.](https://hub.docker.com/u/senthilrch)
$ kubectl get imagecaches -n kube-fledged (Output should be: 'No resources found')
52
125
```
53
126
54
127
## Build and Deploy
55
128
56
-
These instructions will help you build _kube-fledged_ from source and deploy it on a kubernetes cluster.
129
+
These instructions will help you build _kube-fledged_ from source and deploy it to a separate namespace called "kube-fledged". If you need to deploy it to a different namespace, edit the namespace field of the manifests in "kube-fledged/deploy" accordingly.
57
130
58
131
### Build
59
132
@@ -75,29 +148,29 @@ These instructions will help you build _kube-fledged_ from source and deploy it
75
148
- Build and push the docker images to registry (e.g. Docker hub)
$ make fledged-image && make client-image && make push-image
155
+
$ make fledged-image && make client-image && make push-images
83
156
```
84
157
85
158
### Deploy
86
159
87
160
_Note:- You need to have 'cluster-admin' privileges to deploy_
88
161
89
-
- All manifests required for deploying _kube-fledged_ are present inside 'kube-fledged/deploy'. These steps deploy _kube-fledged_ into a separate namespace called "kube-fledged" with default configuration flags. Edit "fledged-deployment.yaml".
162
+
- All manifests required for deploying _kube-fledged_ are present in 'kube-fledged/deploy' directory. Edit "kubefledged-deployment.yaml".
90
163
91
164
Set "image" to "<your_docker_hub_username>/fledged:<your_tag>"
- If you pushed the image to a private repository, add 'imagePullSecrets' to the end of "fledged-deployment.yaml". Refer to kubernetes documentation on [Specifying ImagePullSecrets on a Pod](https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod). The secret <your_registry_key> should be created in "kube-fledged" namespace.
170
+
- If you pushed the image to a private repository, add 'imagePullSecrets' to the end of "kubefledged-deployment.yaml". Refer to kubernetes documentation on [Specifying ImagePullSecrets on a Pod](https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod). The secret <your_registry_key> should be created in "kube-fledged" namespace.
98
171
99
172
```
100
-
serviceAccountName: fledged
173
+
serviceAccountName: kubefledged
101
174
imagePullSecrets:
102
175
- name: <your_registry_key>
103
176
```
@@ -111,7 +184,7 @@ _Note:- You need to have 'cluster-admin' privileges to deploy_
111
184
- Verify if _kube-fledged_ deployed successfully
112
185
113
186
```
114
-
$ kubectl get pods -n kube-fledged -l app=fledged
187
+
$ kubectl get pods -n kube-fledged -l app=kubefledged
$ kubectl get imagecaches -n kube-fledged (Output should be: 'No resources found')
117
190
```
@@ -122,7 +195,7 @@ _kube-fledged_ provides APIs to perform CRUD operations on image cache. These A
122
195
123
196
### Create image cache
124
197
125
-
Refer to sample image cache manifest in "deploy/fledged-imagecache.yaml". Edit it as per your needs before creating image cache. If images are in private repositories requiring credentials to pull, add "imagePullSecrets" to the end.
198
+
Refer to sample image cache manifest in "deploy/kubefledged-imagecache.yaml". Edit it as per your needs before creating image cache. If images are in private repositories requiring credentials to pull, add "imagePullSecrets" to the end.
126
199
127
200
```
128
201
imagePullSecrets:
@@ -132,7 +205,7 @@ Refer to sample image cache manifest in "deploy/fledged-imagecache.yaml". Edit i
132
205
Create the image cache using kubectl. Verify successful creation
0 commit comments