bigchaindb/k8s/nginx-openresty/nginx-openresty-svc.yaml
David Dashyan 9e99c024d3
Replace headers (#2683)
Signed-off-by: David Dashyan <mail@davie.li>
2020-04-06 11:52:18 +02:00

28 lines
843 B
YAML

# Copyright © 2020 Interplanetary Database Association e.V.,
# BigchainDB and IPDB software contributors.
# SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
# Code is Apache-2.0 and docs are CC-BY-4.0
apiVersion: v1
kind: Service
metadata:
name: openresty-instance-0
namespace: default
labels:
name: openresty-instance-0
annotations:
# NOTE: the following annotation is a beta feature and
# only available in GCE/GKE and Azure as of now
# Ref: https://kubernetes.io/docs/tutorials/services/source-ip/
service.beta.kubernetes.io/external-traffic: OnlyLocal
spec:
selector:
app: openresty-instance-0-dep
ports:
- port: "<openresty-backend-port from ConfigMap>"
targetPort: "<openresty-backend-port from ConfigMap>"
name: openresty-svc-port
protocol: TCP
type: ClusterIP
clusterIP: None