Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kubernetes-deploy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
kubernetes-deploy
Commits
a6d53cf5
Unverified
Commit
a6d53cf5
authored
Jan 15, 2017
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP
parent
17a04505
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
Makefile
Makefile
+1
-1
deploy
deploy
+3
-1
src/common.bash
src/common.bash
+3
-2
No files found.
Makefile
View file @
a6d53cf5
REPO
:=
registry.gitlab.com/
gitlab-examples/openshift-deploy
:latest
REPO
:=
registry.gitlab.com/
ayufan/kubernetes-deploy-demo
:latest
build
:
docker build
-t
$(REPO)
.
...
...
deploy
View file @
a6d53cf5
...
...
@@ -30,7 +30,9 @@ kind: Namespace
apiVersion: v1
metadata:
name:
$KUBE_NAMESPACE
---
EOF
cat
<<
EOF
| kubectl apply -n
$KUBE_NAMESPACE
-f -
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
...
...
src/common.bash
View file @
a6d53cf5
...
...
@@ -10,8 +10,9 @@ create_kubeconfig() {
export
KUBECONFIG
=
"
$(
pwd
)
/kubeconfig"
export
KUBE_CLUSTER_OPTIONS
=
if
[[
-n
"
$KUBE_CA_PEM
"
]]
;
then
cat
"
$KUBE_CA_PEM
"
>
"
$(
pwd
)
/kube.ca.pem"
export
KUBE_CLUSTER_OPTIONS
=
--certificate-authority
=
KUBE_CA_PEM
echo
"Using KUBE_CA_PEM..."
echo
"
$KUBE_CA_PEM
"
>
"
$(
pwd
)
/kube.ca.pem"
export
KUBE_CLUSTER_OPTIONS
=
--certificate-authority
=
"
$(
pwd
)
/kube.ca.pem"
fi
kubectl config set-cluster gitlab-deploy
--server
=
"
$KUBE_URL
"
\
$KUBE_CLUSTER_OPTIONS
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment