Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cat << EOF > ns.yaml
- apiVersion: v1
- kind: Namespace
- metadata:
- name: demo-$USER
- EOF
- cat << EOF > deployment.yaml
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: demodeployment-$USER
- spec:
- replicas: 2
- selector:
- matchLabels:
- app: web
- template:
- metadata:
- labels:
- app: web
- spec:
- containers:
- - image: ciberado/pokemon-nodejs:0.0.1
- name: web
- EOF
- cat << EOF > service.yaml
- apiVersion: v1
- kind: Service
- metadata:
- name: demoservice
- spec:
- ports:
- - port: 80
- protocol: TCP
- targetPort: 80
- selector:
- app: web
- type: LoadBalancer
- EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement