Skip to content

Instantly share code, notes, and snippets.

View p-le's full-sized avatar
🏠
Working from home

Phu Le p-le

🏠
Working from home
View GitHub Profile
apiVersion: v1
kind: Service
metadata:
name: echoserver
spec:
selector:
app: echoserver
ports:
- port: 80
targetPort: 8080
apiVersion: apps/v1
kind: Deployment
metadata:
name: echoserver
labels:
app: echoserver
spec:
replicas: 3
selector:
matchLabels:
@p-le
p-le / k3d-vagrant Vagrantfile
Last active September 28, 2020 01:05
Vagrant Ubuntu 18.04 + Docker + k3d Setting up
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# https://app.vagrantup.com/hashicorp/boxes/bionic64
config.vm.box = "hashicorp/bionic64"
config.vm.box_check_update = true
# Forwarded port mapping: 8052 -> 8502 for exposed service