blob: 2059a523b0a803b277ca221d0477e6fd5196d251 [file] [log] [blame] [edit]
# Copyright (c) 2022 VEXXHOST, Inc.
#
# 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.
- name: Deploy Helm chart
run_once: true
kubernetes.core.helm:
name: "{{ memcached_helm_release_name }}"
chart_ref: "{{ memcached_helm_chart_ref }}"
release_namespace: "{{ memcached_helm_release_namespace }}"
create_namespace: true
kubeconfig: "{{ memcached_helm_kubeconfig }}"
values: "{{ _memcached_helm_values | combine(memcached_helm_values, recursive=True) }}"
- name: Apply manifests for monitoring
run_once: true
kubernetes.core.k8s:
state: present
definition:
- apiVersion: v1
kind: Service
metadata:
name: "{{ memcached_helm_release_name }}-metrics"
namespace: "{{ memcached_helm_release_namespace }}"
labels:
application: memcached
component: server
spec:
ports:
- name: metrics
protocol: TCP
port: 9150
targetPort: 9150
selector:
application: memcached
component: server