blob: fd3d8765225eda8ee870c9a7f586dbce821b7e74 [file] [log] [blame]
# Copyright 2023 Red Hat, Inc. and/or its affiliates
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: v1
kind: Service
metadata:
name: event-listener
labels:
app: event-listener
spec:
selector:
app: event-listener
ports:
- name: http
port: 80
targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: event-listener
labels:
app: event-listener
spec:
replicas: 1
selector:
matchLabels:
app: event-listener
template:
metadata:
labels:
app: event-listener
spec:
containers:
- name: event-listener
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
capabilities:
drop:
- ALL
seccompProfile:
type: "RuntimeDefault"
image: gcr.io/knative-releases/knative.dev/eventing/cmd/event_display:latest
ports:
- containerPort: 8080