Last active
July 10, 2022 15:12
-
-
Save madebyais/e772b3002bf884498b7da576fe1587de 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/v1 | |
kind: Deployment | |
metadata: | |
name: calculator-app | |
labels: | |
app: calculator-app | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: calculator-app | |
template: | |
metadata: | |
labels: | |
app: calculator-app | |
spec: | |
containers: | |
- name: calculator-app | |
image: registry.nutanix.com:5000/username/calculator:latest | |
ports: | |
- containerPort: 1323 | |
env: | |
- name: HELLO_MSG | |
value: welcome | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: calculator-app | |
spec: | |
type: NodePort | |
selector: | |
app: calculator-app | |
ports: | |
- name: tcp | |
protocol: TCP | |
port: 80 | |
targetPort: 1323 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment