docs: upgrade skaffold manifest for v2 (#408)
This commit is contained in:
@@ -1,4 +1,35 @@
|
|||||||
# used by ../skaffold.yaml
|
# used by ../skaffold.yaml
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: mc-router
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRole
|
||||||
|
metadata:
|
||||||
|
name: services-watcher
|
||||||
|
rules:
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["services"]
|
||||||
|
verbs: ["watch","list"]
|
||||||
|
- apiGroups: ["apps"]
|
||||||
|
resources: ["statefulsets", "statefulsets/scale"]
|
||||||
|
verbs: ["watch","list","get","update"]
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
metadata:
|
||||||
|
name: mc-router-services-watcher
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: mc-router
|
||||||
|
namespace: default
|
||||||
|
roleRef:
|
||||||
|
kind: ClusterRole
|
||||||
|
name: services-watcher
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
@@ -21,7 +52,10 @@ spec:
|
|||||||
- image: itzg/mc-router:latest
|
- image: itzg/mc-router:latest
|
||||||
name: mc-router
|
name: mc-router
|
||||||
# Add "--auto-scale-up" here for https://github.com/itzg/mc-router/#auto-scale-up
|
# Add "--auto-scale-up" here for https://github.com/itzg/mc-router/#auto-scale-up
|
||||||
args: ["--api-binding", ":8080", "--in-kube-cluster"]
|
args:
|
||||||
|
- --api-binding
|
||||||
|
- :8080
|
||||||
|
- --in-kube-cluster
|
||||||
ports:
|
ports:
|
||||||
- name: proxy
|
- name: proxy
|
||||||
containerPort: 25565
|
containerPort: 25565
|
||||||
|
|||||||
+4
-3
@@ -1,4 +1,4 @@
|
|||||||
apiVersion: skaffold/v2beta26
|
apiVersion: skaffold/v4beta13
|
||||||
kind: Config
|
kind: Config
|
||||||
metadata:
|
metadata:
|
||||||
name: mc-router
|
name: mc-router
|
||||||
@@ -8,7 +8,8 @@ build:
|
|||||||
# https://skaffold.dev/docs/pipeline-stages/builders/ko/
|
# https://skaffold.dev/docs/pipeline-stages/builders/ko/
|
||||||
ko:
|
ko:
|
||||||
main: ./cmd/mc-router/
|
main: ./cmd/mc-router/
|
||||||
|
manifests:
|
||||||
|
rawYaml:
|
||||||
|
- docs/k8s-deployment.yaml
|
||||||
deploy:
|
deploy:
|
||||||
kubectl:
|
kubectl:
|
||||||
manifests:
|
|
||||||
- docs/k8s-deployment.yaml
|
|
||||||
|
|||||||
Reference in New Issue
Block a user