Most Popular

1500 questions
4
votes
1 answer

How to use a plugin parameter?

In Ansible, I want to use a plugin parameter. For example, the profile_tasks plugin supports a parameter to "Adjust the sorting output of summary tasks". I enable this plugin by whitelisting it in the ansible.cfg file…
Tran Triet
  • 819
  • 3
  • 10
  • 19
4
votes
2 answers

How to convert a docker-compose file to kubernetes file(s)?

Is there any easy way to convert a docker-compose.yml file to Kubernetes file(s)?
saif
  • 149
  • 6
4
votes
4 answers

How to see when an AWS IAM role was last used?

In AWS in the GUI you can select a role and then click on delete, then when you are prompted to approve or deny the deletion it shows you when the role was last used. I would like to be able to know when a role was last used without pretend deleting…
Uberhumus
  • 277
  • 4
  • 14
4
votes
1 answer

Configuring Zookeeper from Ansible

I'm trying to configure a Zookeeper Cluster with Ansible. As you might know Zookeeper has two important config files. zookeeper/conf/zoo.cfg I create this file on each cluster member using this jinja2 template: {% for host in groups['zookeeper']…
Marged
  • 163
  • 6
4
votes
3 answers

How to enable Google Maps and generate an API key using Terraform?

I've been trying to spin up a project from scratch over the Christmas break to automate the creation of my home network, one of those components is the Ubiquiti Controller which requires a Google Maps API key to plot devices onto maps. I've been…
Richard Slater
  • 11,612
  • 6
  • 41
  • 81
4
votes
1 answer

How do you instruct AWS FARGATE to provision a t2.small via ECS CLI instead of the default micro?

I am trialling AWS ECS for the first time. I've run through the tutorials and now I'm trying to deploy an existing Docker Compose suite which I've been using on Digital Ocean for some time. I have four containers in my composition, an ExpressJS app,…
scipilot
  • 249
  • 3
  • 8
4
votes
4 answers

Should we build our application inside a docker container, or copy it in?

I am dockerizing our applications to have the environments recreatable. As a process of dockerizing, we will be required to do the below steps: Build the application. Prepare the environment as the container. Deploy the application to the…
4
votes
1 answer

Kubernetes auto scaling in cloud environment

Anyone knows if there is a solution to provision (non-managed) autoscaling Kubernetes clusters in the cloud? I am looking for a generic solution that will work in any public cloud and in private data centers. After quite a bit of research, the known…
Evgeny Zislis
  • 8,963
  • 5
  • 38
  • 72
4
votes
1 answer

How to implement GitLab Flow branching model for microservices?

Recently I’ve been looking into alternatives to the git flow branching model and since I’m already using GitLab, I stumbled upon their own branching model called GitLab flow. I’m currently trying to get my head around how to implement this properly…
Claudio
  • 41
  • 2
4
votes
2 answers

How to redirect tomcat logs TO console?

So I have a problem that is the reverse of what everyone else on the internet wants.. I want to take tomcat logs that are being written out to /usr/local/tomcat/logs and have them be output to console instead. (Everyone else is asking the reverse..…
Scott Shorkey
  • 161
  • 2
  • 3
4
votes
1 answer

Jenkins pipeline nested parallel

Jenkins pipeline, declarative. Simple question, how do I create a parallel stages inside a stage which is parallel by itself? pipeline { agent { label 'master' } options { timestamps() timeout(time: 15, unit: 'MINUTES') …
amichib
  • 115
  • 1
  • 2
  • 7
4
votes
1 answer

ansible AWX is connecting through ssh as root instead of user defined in credential

I'm running ansible 2.6.2 and awx 1.0.7.2 on rhel 7.5. AWX is connecting to my ssh proxy as root instead of the defined Credential user. My playbook contains the following become: yes become_method: sudo remote_user: remoteuser ansible_user:…
olveram
  • 41
  • 2
4
votes
1 answer

How to fix a "heartbeat failure" in Docker Swarm?

My cluster is currently located in a single data center. I've been trying to change that by adding a single worker node from another data center, but so far it hasn't worked. I'm able to make this node join the swarm and get listed by the managers,…
ivarec
  • 183
  • 1
  • 5
4
votes
1 answer

How do I prevent service A from being placed in the same node as service B in Docker Swarm?

From the docs, I could only find information about placement restrictions based on node attributes, likes labels and its role. However, I couldn't find how to configure placement based on the services already running on a given node. How can I do…
ivarec
  • 183
  • 1
  • 5
4
votes
1 answer

When exactly and what for should VOLUME in a Dockerfile be used?

When writing a Dockerfile, I do have the option of specifying volumes, such as: VOLUME /var/www But even without this declaration I am able to mount volumes to this directory and other places, e.g. by using -v /foo:/var/www or -v…
Thomas Luzat
  • 141
  • 2