bigchaindb/k8s/nginx-openresty/nginx-openresty-svc.yaml
Troy McConaghy abdd23f5a6 Problem: Source files contain no license info (#2455)
* Problem: Source files contain no license info

Solution: Add comments with SPDX license info to source files

* Python 3 files don't need # -*- coding: utf-8 -*-
2018-08-16 12:31:32 +02:00

27 lines
792 B
YAML

# Copyright BigchainDB GmbH and BigchainDB 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