This repository has been archived by the owner on Aug 10, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes to the imagelayer ui application for use as a frontend in kub…
…ernetes Presents the UI code as static resources as before Links are changed for paths /registry -> proxied to an cluster service named imagelayers /badge -> proxied to a cluster service named badger manifests/imagelayers-all.yaml is a complete kubernetes specification for all three replication controllers and services
- Loading branch information
ntfrnzn
committed
Mar 30, 2016
1 parent
b96951e
commit 8544de6
Showing
8 changed files
with
365 additions
and
73 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
FROM centurylink/nginx:1.6.2 | ||
FROM nginx:1.8.1 | ||
|
||
MAINTAINER CenturyLink Labs <ctl-labs-futuretech@centurylink.com> | ||
MAINTAINER Nathan Franzen <nathan.franzen@ctl.io> | ||
EXPOSE 9000 | ||
EXPOSE 8080 | ||
|
||
ADD nginx.conf /etc/nginx/nginx.conf | ||
ADD /dist /data/dist |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: imagelayers | ||
name: imagelayers | ||
namespace: default | ||
spec: | ||
ports: | ||
- port: 80 | ||
protocol: TCP | ||
targetPort: 8888 | ||
selector: | ||
app: imagelayers | ||
sessionAffinity: None | ||
type: ClusterIP | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: badger | ||
name: badger | ||
namespace: default | ||
spec: | ||
ports: | ||
- port: 80 | ||
protocol: TCP | ||
targetPort: 3000 | ||
selector: | ||
app: badger | ||
sessionAffinity: None | ||
type: ClusterIP | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: imagelayers-web | ||
name: imagelayers-web | ||
namespace: default | ||
spec: | ||
ports: | ||
- port: 80 | ||
protocol: TCP | ||
targetPort: 9000 | ||
nodePort: 30900 | ||
selector: | ||
app: imagelayers-web | ||
sessionAffinity: None | ||
type: NodePort | ||
--- | ||
apiVersion: v1 | ||
kind: ReplicationController | ||
metadata: | ||
labels: | ||
app: imagelayers | ||
name: imagelayers | ||
namespace: default | ||
spec: | ||
replicas: 1 | ||
selector: | ||
app: imagelayers | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
app: imagelayers | ||
name: imagelayers | ||
spec: | ||
containers: | ||
- image: centurylink/imagelayers-api | ||
imagePullPolicy: IfNotPresent | ||
name: imagelayers | ||
resources: {} | ||
securityContext: | ||
privileged: false | ||
terminationMessagePath: /dev/termination-log | ||
dnsPolicy: ClusterFirst | ||
restartPolicy: Always | ||
terminationGracePeriodSeconds: 30 | ||
--- | ||
apiVersion: v1 | ||
kind: ReplicationController | ||
metadata: | ||
labels: | ||
app: imagelayers-web | ||
version: kubernetes-v1.0 | ||
name: imagelayers-web | ||
namespace: default | ||
spec: | ||
replicas: 1 | ||
selector: | ||
app: imagelayers-web | ||
version: kubernetes-v1.0 | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
app: imagelayers-web | ||
version: kubernetes-v1.0 | ||
name: imagelayers-web | ||
spec: | ||
containers: | ||
- image: ntfrnzn/imagelayers-ui:kubernetes-v1.0 | ||
imagePullPolicy: IfNotPresent | ||
name: imagelayers-web | ||
resources: {} | ||
securityContext: | ||
privileged: false | ||
terminationMessagePath: /dev/termination-log | ||
dnsPolicy: ClusterFirst | ||
restartPolicy: Always | ||
terminationGracePeriodSeconds: 30 | ||
--- | ||
apiVersion: v1 | ||
kind: ReplicationController | ||
metadata: | ||
labels: | ||
app: badger | ||
name: badger | ||
namespace: default | ||
spec: | ||
replicas: 1 | ||
selector: | ||
app: badger | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
app: badger | ||
name: badger | ||
spec: | ||
containers: | ||
- image: centurylink/badger | ||
imagePullPolicy: IfNotPresent | ||
name: badger | ||
resources: {} | ||
env: | ||
- name: MODE | ||
value: production | ||
securityContext: | ||
privileged: false | ||
terminationMessagePath: /dev/termination-log | ||
dnsPolicy: ClusterFirst | ||
restartPolicy: Always | ||
terminationGracePeriodSeconds: 30 |
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
Oops, something went wrong.