Skip to main content

Questions tagged [yaml]

YaML is a human-readable data serialisation format.

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

How to correctly configure a custom Statsd mapping yaml for a prometheus statsd exporter inside a docker compose service?

I have the following custom statsd yaml mappings: - match: "*" observer_type: summary name: "stats" labels: timer: "$1" summary_options: ...
Sama's user avatar
  • 1
0 votes
1 answer
80 views

Pod doesnt seem to have attached PVC

I have created PV, PVC and added that PVC to the pod. Problem/Question: When adding PVC (in my understanding) it is like attaching external/additional storage. Yet, when I connect to the pod, i dont ...
czezz's user avatar
  • 13
0 votes
0 answers
31 views

Ansible variable precedence in a play vs in a task

I'm struggling a bit with variables precedences in my play and in a task. I'm using this play, which works great but I've add a last task to reboot my windows server BUT i have to use a special ...
motorbass's user avatar
  • 373
0 votes
0 answers
56 views

k8s ingress issue: no value in address field

This is the ingress configuration of a service (my-service), ingress.yml apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: my-service-ingress annotations: kubernetes.io/ingress....
Luca Rasconi's user avatar
0 votes
0 answers
57 views

Vector pods clash with kubernetes Pod Security Standards in CIS Mode

I use a kubernetes Cluster set up with RKE2. I have the problem that when setting up Vector via Helm helm repo add vector https://helm.vector.dev helm repo update helm install vector vector/vector --...
Falrach's user avatar
  • 101
0 votes
1 answer
34 views

How to implement editing Docker container files from host from installation with YML and Dockerfiles (NO Terminal)?

hello i have this yml file to get docker container working with phpmyadmin: phpmyadmin: image: phpmyadmin/phpmyadmin restart: always expose: - 80 depends_on: - database ...
Francisco IA Lover's user avatar
0 votes
1 answer
87 views

Ejabberd Access to WebAdmin page vhosts/ for account

On my Ubuntu version 22 I have installed Ejabberd according to docs.ejabberd.im. Everything worked fine and made the minimum changes succesfull and registered a member and made the member admin in the ...
Riccoh's user avatar
  • 103
0 votes
0 answers
15 views

azure devops pipeline php laravel yaml PDOException: SQLSTATE[HY000] [2002] Connection refused

PDOException: SQLSTATE[HY000] [2002] Connection refused with 15 error like ,I am already hosting my website on Azure and it is working fine. However, I need to add one CID pipeline using Azure Devops ...
Rejeesh K V's user avatar
1 vote
1 answer
152 views

I am getting an error in the ansible playbook file

I am trying to learn ansible and I have coded my first playbook but it gives me the error saying ERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: JSON: ...
nagesh naga's user avatar
1 vote
2 answers
374 views

How to use wget with headers in liveness probe in a yaml file in kubernetes?

I am trying to use wget in my liveness probe in Kubernetes. Here is the code: apiVersion: v1 kind: Pod metadata: namespace: test labels: test: liveness name: liveness-exec spec: containers:...
Edgar Peixoto's user avatar
0 votes
0 answers
36 views

Possible to deploy service to GKE Autopilot cluster without YAML?

Is it possible to deploy to GKE Autopilot cluster without YAML and just command line? I have inherited a project where deployment generates command line to deploy to CloudRun. I am in the process of ...
ift-436t's user avatar
0 votes
1 answer
75 views

Need help managing per-machine per-user sudo permissions in a research network environment using saz-sudo and Hiera with Puppet

Currently our Puppet server has an /etc/sudoers file defined with the permissions for every user on every machine in our network. This file is distributed equally to every host to provide permissions. ...
Jamie King's user avatar
0 votes
0 answers
14 views

Why do these Tekton resources need to be in separate YAML files?

Does anyone know why putting these resources into a single file does not work, but having them in separate files work perfectly fine? Running oc apply -f big_file.yaml on this does not work: ...
Zhao Li's user avatar
  • 125
0 votes
0 answers
56 views

Argocd Sync issue error validating data: ValidationError(Deployment.spec.template.metadata):

I have deployed my app using terraform and I'd like to now sync it to my ArgoCD but I keep getting this error and I can't bypass it. error validating data: ValidationError(Deployment.spec.template....
SumMmGuy's user avatar
1 vote
0 answers
215 views

HEALTH CHECK not resolving for ClamAV hosted in GKE cluster

Couldn't resolve health check related issue for the clamAV:1.2 deployment hosted in the GKE cluster in the port 3310, 7357. Facing some backend services are in UNHEALTHY state, in the ingress after ...
Vikram R's user avatar
0 votes
1 answer
205 views

How to write command for Kubernetes pod with flag and parameter on same line?

I have this configuration working for a Kubernetes/OpenShift cronjob/pod: spec: containers: - name: activate-trigger image: curlimages/curl command: - curl - --header - &...
Zhao Li's user avatar
  • 125
0 votes
0 answers
389 views

Traefik proxy splitting dynamic config file

i have questions about config files in Traefik. I would like to split my dynamic config file into multiples based services files. _ The setup I have a proxmox instance running a pfSense VM. All ...
DixFlatline's user avatar
-1 votes
2 answers
117 views

How can I add an additional working IP to a VM?

I have 2 websites working fine on the same IP (92.46.87.48). Is a ubuntu server on a VM. Now I need to assign one ip for every website. I edit the /etc/hosts fine, I just buy an additional IP and now ...
SixSense's user avatar
0 votes
0 answers
73 views

Need help on how to Reset the powerstate of multiple VM's similar to obtaining multiple VM's powerstate using a VMware Dynamic Inventory File

I am trying to create and use a playbook that will reset the power of ONE, TWO or ALL VM's similiar to the playbook I use to obtain the powerstate of ONE, TWO or ALL VM's. Here is my current setup and ...
pmazzola's user avatar
1 vote
1 answer
201 views

Ansible / YML code needed to Reset / Power Cycle a VMware VM

I have a file called "vcenter.yml" in my hosts folder which is used to authenticate to my vcenter and perform a dynamic inventory of this vcenter. I use this file to gather VM info and also ...
pmazzola's user avatar
0 votes
1 answer
968 views

How can I boot using Ansible on an Dell iDRAC9 server from an iso that's located on a remote server?

I have this playbook that what I'm trying to do it's to install CentOS using Ansible and Redfish, I don't want to use any modules, I'll install the CentOS on multiple Dell iDRAC9 servers and I'm ...
bicanul123's user avatar
0 votes
1 answer
9k views

What's wrong in my docker file - services.db.environment must be a mapping

Here's my yml contents. version: '2.2' services: # postgres # https://hub.docker.com/_/postgres db: container_name: postgres platform : linux/amd64 image: "postgres:14.6-...
yeonsook kwak's user avatar
0 votes
1 answer
1k views

How to create a "DOckerfile" to containerize a "Flutter" app to deploy it on a Kubernetes cluster?

I am just wondering to know how should I create a docker file for a Flutter app then deploy it on a Kubernetes cluster? I found the following Dockerfile and server.sh script from this website but I ...
best_of_man's user avatar
1 vote
1 answer
75 views

How should I replace this line "provisioner: k8s.io/minikube-hostpath" for a "Kind" statefulset.yaml file?

The following is a StatefulSet.yaml file for deploying Cassandra database on a minikube cluster. I am not sure what lines should be replaced if I want to use a Kind cluster instead of a minikube one, ...
best_of_man's user avatar
1 vote
1 answer
2k views

replace with regular expression in azure devops

I want to take this buildVariable Build.SourceVersion which will equal for example: 0gc58d92d905d62415b8866g3f48f17416da426s And replace from digit [7] till line end with empty string 0gc58d92 I ...
Shnbook's user avatar
  • 11
2 votes
1 answer
507 views

Create JSON Patch 6902 from two yaml/json files

Imagine I have a file foo.yaml and a modified version of this file called foo2.yaml. Is there a way to create a correspondig json patch 6902?
guettli's user avatar
  • 3,963
1 vote
1 answer
1k views

Password of new user with LXD and Cloud-init

I'm trying to create a profile to automate the creation of a container, but I'm having trouble with cloud-init. For some reason the password is not being set for the user and is also not being added ...
Matheus Saraiva's user avatar
1 vote
1 answer
672 views

Google AppEngine - 502 Bad Gateway

I'm running a Python Flask endpoint locally and it all works fine, but when I deploy it in GCP AppEngine, I get a 502 Bad Gateway. It seems to fail at about 200 reads of 2290 bytes each. I've ...
Irfaan Sulaiman's user avatar
2 votes
1 answer
4k views

How to validate variables contents in Ansible?

ansible-lint only checks the tasks/handlers and doesn't iterate over the variables (e.g. if you're using with_items, it won't iterate over all the items) and yamllint only checks cosmetic issues and ...
user avatar
1 vote
1 answer
5k views

Alertmanager telegram config chat_id and cannot unmarshal errror

I am trying to configure alertmanager to send alerts to my telegram group. Following the configuration I have: global: resolve_timeout: 5m route: group_by: - job group_interval: 5m ...
Jose's user avatar
  • 21
0 votes
1 answer
910 views

Ansible "hip-profiles unexpected here" Palo alto panos_security_rule

I'm trying to set a security policy on my Palo Alto firewalls using Ansible with the panos_security_rule module. However, I keep running in to the same error, hip-profiles unexpected here. I found ...
Collega's user avatar
  • 75
0 votes
1 answer
94 views

Automate Kubernetes Deployment using ArgoCD

We have a GitHub repo containing all the Kubernetes cluster yaml files, When we want to update a deployment we simply edit the yaml and push to GitHub. Unfortunately, we then have to kubectl apply -f ...
Birdy's user avatar
  • 103
0 votes
1 answer
483 views

Ansible simple inventory for dhcp hosts in yaml

Need a little hint on yaml syntax for a very simple inventory file. I want to include dhcp range of workstations in a nice inventory file. Regarding the official documentation this could be done but i'...
infoman33's user avatar
3 votes
1 answer
3k views

Contents in Kubernetes pod gets empty when persistent volume is mounted

persistent volume claim and persistent volume yaml file apiVersion: v1 kind: PersistentVolume metadata: name: my-volume labels: type: local spec: storageClassName: manual capacity: ...
aks's user avatar
  • 57
0 votes
0 answers
846 views

I m trying to use mysqldump but getting error mysqldump: Got error: 2003: Can't connect to MySQL server on host(110) when trying to connect

Here is my sam template for taking database backup trigger: - none pool: vmImage: ubuntu-latest steps: - script: echo Hello, world! displayName: 'Run a one-line script' - script:...
vithya m's user avatar
0 votes
1 answer
995 views

Salt state file doesn't load info from pillar

I'm getting this error when I'm trying to apply my statefile to my minion: client.school.test: Data failed to compile: Rendering SLS 'base:nextcloud2' failed: Jinja variable 'list object' has no ...
John Rambo's user avatar
0 votes
1 answer
1k views

Docker private registry as kubernetes pod - deleted images auto-recreated

I run a docker private registry v2.7.0 as a kubernetes pod with a service and a persistent volume, thanks to the Varun Kumar G tutorial, which has been the only successful method on my setup, for ...
Alexander Sofianos's user avatar
0 votes
1 answer
28k views

ansible - how to get over "conflicting action statements" error?

I have an Ansible playbook for creating and resizing logical Volumes # playbook lvol.yml - hosts: step tasks: - name: 'create /dev/sdb1 -> 20GB (of 35GB)' community.general.parted: ...
vrms's user avatar
  • 287
3 votes
1 answer
3k views

Cross-reference Ansible variables within the same mapping

How can I define an Ansible variable whose value is another variable in the same mapping structure? To allow sensible namespacing of variables, I am defining mapping structures like this, where some ...
bignose's user avatar
  • 1,102
1 vote
0 answers
175 views

Multiple VM deployment via GCP Deployment Manager

What I want to achieve: I want to be able to create multiple VM instance using AWX playbook or Deployment Manager. The script will read instance configuration in a csv uploaded to gcloud or bitbucket, ...
Sunny J's user avatar
  • 627
0 votes
1 answer
147 views

Server set up using app.yaml, cron.yaml, etc. But directories aren't recognized

As the title says, the server has been configured to recognize sub directories but for whatever reason they are not being recognized when I load a web page. Is there any way to debug what is going on? ...
wookieluvr49's user avatar
2 votes
1 answer
4k views

patroni.exceptions.PatroniFatalException: 'Failed to bootstrap cluster'

I have a problem with patroni right here [postgres@localhost ~]$ patroni /etc/patroni.yml 2021-05-25 11:39:56,767 INFO: Selected new etcd server http://10.102.196.138:2379 2021-05-25 11:39:56,772 INFO:...
Tùng Nguyễn's user avatar
1 vote
0 answers
7k views

yaml.parser.ParserError: while parsing a block mapping

I followed this document while configuring patroni and I have a problem with patroni.service file like this https://snapshooter.com/learn/postgresql/postgresql-cluster-patroni [Unit] Description=...
Tùng Nguyễn's user avatar
0 votes
1 answer
647 views

deploying on hosts with ansible based on yaml file

Developers are going to provide a yaml file with hosts in particular order (every deployment can differ, depend on needs) and each field in yaml file will have instructions for example install yum ...
Dark Furby's user avatar
3 votes
1 answer
2k views

Configure AWS CloudFront to send custom query params to origin

Is it possible to configure my AWS CloudFront distribution to append to the request a custom query param (e.g a private key) before sending it to the origin? For example, the front end is calling *....
Nadav96's user avatar
  • 131
0 votes
1 answer
13k views

How to combine YAMLfiles in Python?

I have some Kubernetes YAML files which need to combined. For that I tried using Python. Second file (sample.yaml) should be merged to the first file source.yaml Like, the source.yaml has one section ...
uday's user avatar
  • 422
0 votes
1 answer
372 views

GCP Deployment Manager: where to find a reference guide to properly create YAML config and template files?

I started working with Google Cloud Deployment Manager upon request of a client, using YAML config files, but I can't find anywhere how to map the reference shown in https://cloud.google.com/...
solr's user avatar
  • 103
0 votes
1 answer
3k views

Merge few files in Ansible lookup file

So far I use simple code to deploy Docker stacks. I don't want to use community.general.docker_stack module, due to its ridiculous requirement: the stack definition (docker compose yml file) needs to ...
Michał Ciania's user avatar
1 vote
0 answers
905 views

How to monitor datadog-agent's certificates expiration?

I have an nginx-pod which redirects traffic into Kubernetes services and stores related certificates insides its volume. I want to monitor these certificates - mainly their expiration. I found out ...
Ondřej Doležal's user avatar
2 votes
1 answer
1k views

AWS CloudFormation - Creating Layer Version and Function that uses layer

I have a Cloudformation template that currently looks roughly like the following. Resources: MyLayer: Type: AWS::Lambda::LayerVersion Properties: CompatibleRuntimes: - nodejs12....
Randabut's user avatar