Skip to content

Instantly share code, notes, and snippets.

View collabnix's full-sized avatar
🐳
Docker ! Docker ! Docker !

Collabnix collabnix

🐳
Docker ! Docker ! Docker !
View GitHub Profile
@collabnix
collabnix / gist:23291139ce594bb27db7220f48692781
Created September 2, 2020 07:20
Deploying MySQL with StatefulSet using Portainer 2.0 CE UI
apiVersion: v1
kind: Service
metadata:
name: wordpress-mysql
labels:
app: wordpress
spec:
ports:
- port: 3306
selector:
@collabnix
collabnix / nginx.yaml
Created September 2, 2020 07:15
Deploying NGINX using Portainer 2.0 UI
---
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: nginx
spec:
strategy:
type: Recreate
selector:
matchLabels:
@collabnix
collabnix / install-client-bundle.sh
Created October 19, 2018 11:05
Installing Docker Client Bundle for Docker Enterprise 2.0
#Download client certificates by using the REST API
#You can also download client bundles by using the UCP REST API. In this example, we use curl to make the web requests to the API, jq to parse the responses, and unzip to unpack the zip archive.
#To install these tools on an Ubuntu distribution, you can run:
sudo apt-get update && sudo apt-get install curl jq unzip
# Create an environment variable with the user security token
AUTHTOKEN=$(curl -sk -d '{"username":"<username>","password":"<password>"}' https://<ucp-ip>/auth/login | jq -r .auth_token)
@collabnix
collabnix / wordpress-deployment.yaml
Created December 15, 2017 14:11
A First Look at Kubernetes Integrated Docker for Mac 17.12 Platform
apiVersion: v1
kind: Service
metadata:
name: wordpress
labels:
app: wordpress
spec:
ports:
- port: 80
selector:
@collabnix
collabnix / mysql-deployment.yaml
Created December 15, 2017 14:04
A First Look at Kubernetes Integrated Docker For Mac Platform
apiVersion: v1
kind: Service
metadata:
name: wordpress-mysql
labels:
app: wordpress
spec:
ports:
- port: 3306
selector:
@collabnix
collabnix / local-volume.yaml
Created December 15, 2017 10:47
A First Look at Kubernetes Integrated Docker For Mac Platform
apiVersion: v1
kind: PersistentVolume
metadata:
name: local-pv-1
labels:
type: local
spec:
capacity:
storage: 20Gi
accessModes: