Created
March 28, 2019 06:43
-
-
Save psykidellic/aaa0583e6721c26839f1d822ff6825f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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