Skip to content

Instantly share code, notes, and snippets.

@psykidellic
Created March 28, 2019 06:43
Show Gist options
  • Save psykidellic/aaa0583e6721c26839f1d822ff6825f6 to your computer and use it in GitHub Desktop.
Save psykidellic/aaa0583e6721c26839f1d822ff6825f6 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: optik-testapp
namespace: optik-ae
spec:
replicas: 1
selector:
matchLabels:
app: optik-testapp
template:
metadata:
labels:
app: optik-testapp
spec:
containers:
- name: optik-testapp1
image: someimage:v1
ports:
- containerPort: 8080
name: http-port
imagePullPolicy: IfNotPresent
- name: optik-testapp2
image: anotherimage:v1
ports:
- containerPort: 8080
name: http-port
imagePullPolicy: IfNotPresent
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: optik-testapp
namespace: optik-ae
spec:
replicas: 1
selector:
matchLabels:
app: optik-testapp
template:
metadata:
labels:
app: optik-testapp
spec:
containers:
- name: optik-testapp1
image: someimage:v1
ports:
- containerPort: 8080
name: http-port
imagePullPolicy: IfNotPresent
- name: optik-testapp2
image: anotherimage:v1
ports:
- containerPort: 8081
name: http-port
imagePullPolicy: IfNotPresent
apiVersion: v1
kind: Service
metadata:
labels:
name: optik-testapp
name: optik-testapp
namespace: optik-ae
spec:
ports:
- port: 8484
name: http-port
targetPort: 8081
- port: 8485
name: http-port2
targetPort: 8080
selector:
app: optik-testapp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment