Helm charts and apps for pm-setup
[nonrtric/plt/ranpm.git] / install / helm / nrt-base-1 / charts / minio / templates / app-service.yaml
1 #  ============LICENSE_START===============================================
2 #  Copyright (C) 2023 Nordix Foundation. All rights reserved.
3 #  ========================================================================
4 #  Licensed under the Apache License, Version 2.0 (the "License");
5 #  you may not use this file except in compliance with the License.
6 #  You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #  Unless required by applicable law or agreed to in writing, software
11 #  distributed under the License is distributed on an "AS IS" BASIS,
12 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #  See the License for the specific language governing permissions and
14 #  limitations under the License.
15 #  ============LICENSE_END=================================================
16 #
17
18 apiVersion: v1
19 kind: Service
20 metadata:
21   name: minio
22   namespace: nonrtric
23   labels:
24     app: minio
25 spec:
26   clusterIP: None
27   type: ClusterIP
28   clusterIP: None
29   selector:
30     app: minio
31   ports:
32   - name: tcpmain
33     protocol: TCP
34     port: 9000
35     targetPort: 9000
36
37 ---
38
39 apiVersion: v1
40 kind: Service
41 metadata:
42   name: minio-web
43   namespace: nonrtric
44   labels:
45 spec:
46   type: NodePort
47   selector:
48     statefulset.kubernetes.io/pod-name: minio-0
49   ports:
50   - name: httpweb
51     protocol: TCP
52     port: 9001
53     targetPort: 9001
54     nodePort: 31768
55