Skip to content

Instantly share code, notes, and snippets.

@detiber
Created December 7, 2015 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save detiber/b720376d095268373d6d to your computer and use it in GitHub Desktop.
Save detiber/b720376d095268373d6d to your computer and use it in GitHub Desktop.
working pod create
---
- hosts: localhost
gather_facts: no
become: no
tasks:
- kubernetes_pod:
name: test-pod4
server: https://ose3-master-ansible.test.example.com:8443
insecure: yes
namespace: test
auth_token: 0NkbsJr1x9rU5DDb_BAKkYhlTEb4CpTrdNAvWbWnrAI
containers:
- name: nginx
image: nginx
ports:
- containerPort: 8080
register: result
- debug: var=result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment