planetmint/k8s/nginx-openresty/nginx-openresty-svc.yaml
2022-01-13 16:29:35 +00:00

28 lines
843 B
YAML

# Copyright © 2020 Interplanetary Database Association e.V.,
# Planetmint 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