Skip to content

Commit

Permalink
Template for Deplying on Openshift
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilherme Baufaker Rêgo authored and lucasponce committed Sep 26, 2017
1 parent 981ca5e commit 7d4aae6
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions dist/hawkular-alerts-openshift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
#
# Copyright 2015-2017 Red Hat, Inc. and/or its affiliates
# and other contributors as indicated by the @author tags.
#
# 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.
#

id: hawkular-alerts
kind: Template
apiVersion: v1
name: Hawkular Alerts
metadata:
name: hawkular-alerts


objects:
- apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: hawkular-alerts
labels:
app: hawkular-alerts
spec:
replicas: 1
strategy:
type: Recreate
template:
metadata:
labels:
app: hawkular-alerts
spec:
containers:
- env:
image: hawkular/hawkular-alerts
name: hawkular-alerts
ports:
- containerPort: 8080
protocol: TCP
- apiVersion: v1
kind: Service
metadata:
name: hawkular-alerts
labels:
app: hawkular-alerts
spec:
ports:
- name: hawkular-alerts
port: 8080
protocol: TCP
targetPort: 8080
selector:
app: hawkular-alerts
type: LoadBalancer

- apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: alerts
spec:
path: /hawkular/alerts/ui
port:
targetPort: hawkular-alerts
to:
kind: Service
name: hawkular-alerts

0 comments on commit 7d4aae6

Please sign in to comment.