Skip to content

Commit

Permalink
Add example Kubernetes manifests.
Browse files Browse the repository at this point in the history
  • Loading branch information
wi1dcard committed Jul 10, 2020
1 parent 5296b84 commit bd1a194
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
21 changes: 21 additions & 0 deletions k8s/base/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: v2ray-exporter
spec:
selector:
matchLabels: {} # Managed by Kustomize
template:
metadata:
labels: {} # Managed by Kustomize
spec:
containers:
- name: v2ray-exporter
image: wi1dcard/v2ray-exporter
resources:
limits:
memory: 128Mi
cpu: 100m
ports:
- name: metrics
containerPort: 9550
9 changes: 9 additions & 0 deletions k8s/base/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: Service
metadata:
name: v2ray-exporter
spec:
ports:
- name: metrics
port: 9550
targetPort: metrics
12 changes: 12 additions & 0 deletions k8s/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- base/deployment.yaml
- base/service.yaml

nameSuffix: -develop
namespace: default

commonLabels:
app: v2ray-exporter

0 comments on commit bd1a194

Please sign in to comment.