deploy golang on minikube code example
Example: deploy golang on minikube
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-go-app
spec:
replicas: 1
selector:
matchLabels:
app: go-app
template:
metadata:
labels:
app: go-app
spec:
containers:
- name: go-app-container
image: dockerbogo/go-app
resources:
limits:
memory: "128Mi"
cpu: "500m"
ports:
- containerPort: 3000