Skip to content

Instantly share code, notes, and snippets.

@jdeathe
Last active December 28, 2016 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdeathe/7191e3914d4e329fc46adfe90273acad to your computer and use it in GitHub Desktop.
Save jdeathe/7191e3914d4e329fc46adfe90273acad to your computer and use it in GitHub Desktop.
Kubernetes Service definition for php-hello-world app based on the Docker image jdeathe/centos-ssh-apache-php
apiVersion: v1
kind: Service
metadata:
name: php-hello-world
spec:
type: NodePort
ports:
- name: http
protocol: TCP
port: 80
targetPort: 80
nodePort: 30080
- name: https
protocol: TCP
port: 443
targetPort: 443
nodePort: 30081
- name: terminated-https
protocol: TCP
port: 8443
targetPort: 8443
nodePort: 30082
selector:
app: php-hello-world
service: apache-php
group: pool-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment