Last active
April 20, 2019 20:55
-
-
Save pahud/54906d24e7889a0adaed72ce4d4baefe to your computer and use it in GitHub Desktop.
update-custom-k8s-objects
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: | |
name: caddy-service | |
spec: | |
selector: | |
app: caddy-pod | |
ports: | |
- name: web | |
port: 80 | |
targetPort: 2015 | |
#type: NodePort | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: caddy | |
spec: | |
replicas: 2 | |
template: | |
metadata: | |
labels: | |
app: caddy-pod | |
spec: | |
containers: | |
- name: caddy-pod | |
image: abiosoft/caddy:php | |
#image: abiosoft/caddy | |
env: | |
- name: MY_TYPE | |
value: caddy | |
ports: | |
- containerPort: 2015 |
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: | |
name: nginx-service | |
spec: | |
selector: | |
app: nginx-pod | |
ports: | |
- name: web | |
port: 80 | |
targetPort: 80 | |
#type: NodePort | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: nginx | |
spec: | |
replicas: 2 | |
template: | |
metadata: | |
labels: | |
app: nginx-pod | |
spec: | |
containers: | |
- name: nginx-pod | |
image: nginx | |
env: | |
- name: MY_TYPE | |
value: nginx | |
ports: | |
- containerPort: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment