blob: 6535e5b11c695192e2b71c3a5f1688cba57ba544 [file] [log] [blame]
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You 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.
# An example of a Kubernetes configuration for Ignite pods deployment.
apiVersion: apps/v1
kind: Deployment
metadata:
# Custom Ignite cluster's name.
name: ignite-cluster
spec:
# Number of nodes to be started by Kubernetes initially.
replicas: 2
template:
metadata:
labels:
# Must be equal to Ignite's Kubernetes service name.
app: ignite
spec:
containers:
# Custom Ignite node's pod name.
- name: ignite-node
# Custom Ignite Docker image name.
image: ignite-kube:v1
ports:
# Ports to open.
- containerPort: 47100 # communication SPI port number.
- containerPort: 47500 # discovery SPI port number.
- containerPort: 49112 # JMX port number.
- containerPort: 8080 # REST port number.
- containerPort: 10800 # SQL port number.
serviceAccountName: ignite
selector:
matchLabels:
app: ignite