Created
December 8, 2020 16:56
-
-
Save jmrobles/a27b8241390fe229366995e32fa0ae25 to your computer and use it in GitHub Desktop.
This file contains hidden or 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: helloworld | |
namespace: micro | |
labels: | |
project: micro | |
micro: service | |
name: helloworld | |
version: latest | |
spec: | |
selector: | |
matchLabels: | |
micro: service | |
name: helloworld | |
version: latest | |
template: | |
metadata: | |
labels: | |
project: micro | |
micro: service | |
name: helloworld | |
version: latest | |
spec: | |
tolerations: | |
- key: "project" | |
operator: "Equal" | |
value: "micro" | |
effect: "NoSchedule" | |
containers: | |
- name: helloworld | |
image: jmrobles/micro-helloworld | |
resources: | |
limits: | |
memory: "128Mi" | |
cpu: "500m" | |
ports: | |
- containerPort: 443 | |
env: | |
- name: "MICRO_API_ADDRESS" | |
value: "443" | |
- name: "MICRO_PROXY" | |
value: "network.micro.svc.cluster.local:8443" | |
- name: "MICRO_SERVER_IMAGE" | |
value: "micro/micro:latest" | |
- name: "MICRO_SERVICE_ADDRESS" | |
value: ":8080" | |
envFrom: | |
- secretRef: | |
name: api-latest | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: helloworld | |
namespace: micro | |
spec: | |
selector: | |
micro: service | |
name: helloworld | |
version: latest | |
ports: | |
- port: 8080 | |
targetPort: 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment