Skip to content
This repository has been archived by the owner on Aug 12, 2020. It is now read-only.

Commit

Permalink
Rename the envoy deployment to gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan committed Oct 29, 2019
1 parent 46879f5 commit 9a5917c
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 18 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# kxds

KxDS is an Envoy discovery service implementation for Kubernetes services
KxDS is an Envoy discovery service implementation for Kubernetes.
KxDS runs as a sidecar next to Envoy and configures the proxy to expose Kubernetes services.

### Features

Expand All @@ -12,5 +13,5 @@ KxDS is an Envoy discovery service implementation for Kubernetes services
### Install

```sh
kubectl apply -k github.com/stefanprodan/kxds//kustomize/envoy
kubectl apply -k github.com/stefanprodan/kxds//kustomize/gateway
```
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: envoy
name: gateway
labels:
app: envoy
app: gateway
spec:
replicas: 1
selector:
matchLabels:
app: envoy
app: gateway
strategy:
type: RollingUpdate
rollingUpdate:
Expand All @@ -17,16 +17,16 @@ spec:
template:
metadata:
labels:
app: envoy
app: gateway
annotations:
prometheus.io/scrape: "true"
prometheus.io/path: "/stats/prometheus"
prometheus.io/port: "9901"
prometheus.io/port: "8081"
spec:
serviceAccountName: envoy
serviceAccountName: gateway
terminationGracePeriodSeconds: 10
containers:
- name: envoy
- name: gateway
image: "envoyproxy/envoy:v1.11.1"
imagePullPolicy: IfNotPresent
securityContext:
Expand All @@ -42,7 +42,7 @@ spec:
- /docker-entrypoint.sh envoy --service-node ${POD_NAME} --service-cluster envoy --base-id 1234 -l info -c /config/envoy.yaml
ports:
- name: admin
containerPort: 9901
containerPort: 8081
protocol: TCP
- name: http
containerPort: 8080
Expand Down
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions kustomize/envoy/rbac.yaml → kustomize/gateway/rbac.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: envoy
name: gateway
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: envoy
name: gateway
rules:
- apiGroups:
- ""
Expand All @@ -17,12 +17,12 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: envoy
name: gateway
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: envoy
name: gateway
subjects:
- kind: ServiceAccount
name: envoy
name: gateway
namespace: default
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
apiVersion: v1
kind: Service
metadata:
name: envoy
name: gateway
labels:
app: envoy
app: gateway
annotations:
service.beta.kubernetes.io/aws-load-balancer-type: "nlb"
spec:
type: LoadBalancer
externalTrafficPolicy: Local
ports:
- name: http
port: 80
protocol: TCP
targetPort: http
selector:
app: envoy
app: gateway
3 changes: 3 additions & 0 deletions kustomize/podinfo/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ metadata:
name: podinfo
labels:
app: podinfo
annotations:
envoy.gateway.kubernetes.io/host: "podinfo.local"
envoy.gateway.kubernetes.io/timeout: "25s"
spec:
type: ClusterIP
selector:
Expand Down

0 comments on commit 9a5917c

Please sign in to comment.