-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3da009
commit e914f0d
Showing
6 changed files
with
102 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Deploy the Envoy Initializer | ||
|
||
The Envoy Initializer is a [Kubernetes initializer](https://kubernetes.io/docs/admin/extensible-admission-controllers/#what-are-initializers) that injects the [envoy](https://lyft.github.io/envoy) proxy into a pod based on policy. | ||
|
||
## Install | ||
|
||
The envoy proxy requires a [configuration file](https://lyft.github.io/envoy/docs/configuration/configuration.html) before it canbe used to forward trafic to other containers in a pod. Store the default `envoy.json` configuration in a configmap: | ||
|
||
``` | ||
kubectl create configmap envoy --from-file envoy.json | ||
``` | ||
|
||
The `envoy-initializer` is configured using a configmap, identified by the `-configmap` flag, which provides the containers and volumes to inject into a pod. Create the `envoy-initializer` configmap: | ||
|
||
``` | ||
kubectl apply -f configmaps/envoy-initializer.yaml | ||
``` | ||
|
||
``` | ||
kubectl apply -f initializer-configurations/envoy.yaml | ||
``` | ||
|
||
``` | ||
kubectl apply -f deployments/envoy-initializer.yaml | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM scratch | ||
ADD envoy-initializer /envoy-initializer | ||
ENTRYPOINT ["/envoy-initializer"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Envoy Initializer | ||
|
||
The Envoy Initializer is a [Kubernetes initializer](https://kubernetes.io/docs/admin/extensible-admission-controllers/#what-are-initializers) that injects the [envoy](https://lyft.github.io/envoy) proxy into a pod based on policy. | ||
|
||
## Usage | ||
|
||
``` | ||
envoy-initializer -h | ||
``` | ||
``` | ||
Usage of envoy-initializer: | ||
-configmap string | ||
The envoy-initializer configmap name (default "envoy-initializer") | ||
-initializer-name string | ||
Set the initializer name (default "envoy.initializer.kubernetes.io") | ||
-namespace string | ||
The Kubernetes namespace (default "default") | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters