prysm-pulse/k8s/nginx/BUILD.bazel
Preston Van Loon 740a9b76a7
Kubernetes - Part 3 of ?? (#981)
* Add nginx ingress for proof-of-work namespace

* connect beacon-chain to pow namespace geth-nodes for websocket connections

* Added relay to beacon-chain

* Route inbound TCP traffic on port 20000 to beacon-relay

* Add bootnode

* Add a basic pk

* checkpoint

* Added flag for p2p port

* Register flag with main

* Set P2P port specifically

* Add beacon chain config

* add deployvrc job

* Add deployvrc service account

* review

* gazelle

* a cluster is needed, i guess
2018-11-28 00:27:21 -05:00

67 lines
1.5 KiB
Python

package(default_visibility = ["//k8s:__subpackages__"])
load("@io_bazel_rules_k8s//k8s:objects.bzl", "k8s_objects")
load("@k8s_cluster_role//:defaults.bzl", "k8s_cluster_role")
load("@k8s_configmap//:defaults.bzl", "k8s_configmap")
load("@k8s_deploy//:defaults.bzl", "k8s_deploy")
load("@k8s_namespace//:defaults.bzl", "k8s_namespace")
load("@k8s_secret//:defaults.bzl", "k8s_secret")
load("@k8s_service//:defaults.bzl", "k8s_service")
load("@k8s_service_account//:defaults.bzl", "k8s_service_account")
k8s_objects(
name = "everything",
objects = [
":namespace", # Must be first
":config",
":default_server_secret",
":deployment",
":rbac",
":service",
":service_account",
],
)
_NAMESPACE = "nginx-ingress"
k8s_secret(
name = "default_server_secret",
template = ":default-server-secret.yaml",
namespace = _NAMESPACE,
)
k8s_deploy(
name = "deployment",
template = ":deployment.yaml",
namespace = _NAMESPACE,
)
k8s_service(
name = "service",
template = ":loadbalancer.yaml",
namespace = _NAMESPACE,
)
k8s_namespace(
name = "namespace",
template = ":namespace.yaml",
)
k8s_configmap(
name = "config",
template = ":nginx-config.yaml",
namespace = _NAMESPACE,
)
k8s_cluster_role(
name = "rbac",
template = ":rbac.yaml",
namespace = _NAMESPACE,
)
k8s_service_account(
name = "service_account",
template = ":service-account.yaml",
namespace = _NAMESPACE,
)