blob: 2059a523b0a803b277ca221d0477e6fd5196d251 [file] [log] [blame]
Mohammed Naser5826c0b2023-01-26 19:10:54 +00001# Copyright (c) 2022 VEXXHOST, Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14
Mohammed Naser5826c0b2023-01-26 19:10:54 +000015- name: Deploy Helm chart
16 run_once: true
17 kubernetes.core.helm:
18 name: "{{ memcached_helm_release_name }}"
19 chart_ref: "{{ memcached_helm_chart_ref }}"
20 release_namespace: "{{ memcached_helm_release_namespace }}"
21 create_namespace: true
Austin Talbot78a774a2024-09-25 10:15:36 -060022 kubeconfig: "{{ memcached_helm_kubeconfig }}"
Mohammed Naser5826c0b2023-01-26 19:10:54 +000023 values: "{{ _memcached_helm_values | combine(memcached_helm_values, recursive=True) }}"
24
25- name: Apply manifests for monitoring
26 run_once: true
27 kubernetes.core.k8s:
28 state: present
29 definition:
30 - apiVersion: v1
31 kind: Service
32 metadata:
33 name: "{{ memcached_helm_release_name }}-metrics"
34 namespace: "{{ memcached_helm_release_namespace }}"
35 labels:
36 application: memcached
37 component: server
38 spec:
39 ports:
40 - name: metrics
41 protocol: TCP
42 port: 9150
43 targetPort: 9150
44 selector:
45 application: memcached
46 component: server